Forum Discussion
3 Replies
- BanuNew Contributor
Thanks Viktor that helped
can you also help me to remove the data which contains / in the array.
i want to eliminite that completley - viktor_nContributor 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('/', ''))