Posted On: Feb 22, 2018
Set is a collection of unique values. The values could be also primitives or object references.
Creating a Set in Javascript
let set = new Set(); set.add(1); set.add('1'); set.add({ key: 'value' }); console.log(set); // Set {1, '1', Object {key: 'value'}}
Never Miss an Articles from us.
Es6 or ECMASCRIPT 2015 is sixth major release of ECMAScript language which comes with a lot of new features and syntax..
New Features in ES6. Support for constants (also known as “immutable variables”) Block-Scope support for both varia..
Babel is one of the most popular JavaScript transpilers and becomes the industry standard. It allows us to write ES6 cod..