Sets are a type of collection consisting of unique values. They were introduced in ES6+. Syntax Let's first see it in use const firstNames = new Set(['Mary', 'Raj', 'John', 'Aftab', 'Mary']); In the above code, we see how to declare and initialize a ...
gree.hashnode.dev3 min read
No responses yet.