Set

  • New data structure for handling collections
  • Store unique values of any type, whether primitive values or object references
  • Efficient and clean
var s = new Set();
s.add("hello").add("goodbye").add("hello");
s.size === 2;
s.has("hello") === true;
s.delete("hello");
s.has("hello") === false;

⛏   ES6 Katas: Set

Hacer las siguientes katas:

results matching ""

    No results matching ""