r/learnjavascript • • May 14 '21

Remove Duplicate Value from array

Post image
234 Upvotes

89 comments sorted by

View all comments

3

u/Budget_Instruction49 May 14 '21

'Set ' a state ? or its just set ?

2

u/slowthedataleak May 14 '21

Not sure that I understand your question but what's happening here is the array is being duplicated into a Set type.

5

u/[deleted] May 14 '21

Not sure that I understand your question

probably brain poisoned by trying to learn React and JS at the same time.