Forum Discussion
viktor_n
5 years agoContributor II
Hi @Banu
This time you need to iterate through the array.
That can be done by using .map() function. See the documentation for more information about this function.
if it’s array of strings you can write $array.map(x => x.replaceAll('/', '')).
Maybe you have array of objects and in that object you have field from which you want to remove the ‘/’, than you just need to map the field in that object.
Like that $array.map(x => x.field.replaceAll('/', ''))