re: How to create an array of unique values in JavaScript using Sets VIEW POST


Good highlight this feature.

However, it maybe worth pointing out that with Set, you can't control the equality operator.

It uses '===', which only work only off same actual object or same value for a primitive.

Which limits the usage somewhat compares to other methods such as map or filter.

Code of Conduct Report abuse