JavaScript Set
To store the elements with unique primitive values or object references, a javascript set object is used. Syntax: new Set([iterable]) Where: iterable is the object whose elements will be added to the new Set. Note: JavaScript set cannot contain duplicate elements i.e. it keeps unique elements only. JavaScript Set Methods: add() Use: To add the … Read more