r/learnjavascript • • May 14 '21

Remove Duplicate Value from array

Post image
234 Upvotes

89 comments sorted by

View all comments

2

u/godsknowledge May 14 '21

I had to use that at work recently. Fetched data from a list in SharePoint and put them into an array. Since they array contained duplicates, I only had to create a Map to get rid of the duplicates.

Parsed it into JSON and voila, you can easily integrate it into other applications like Nintex Forms.