Instantly share code, notes, and snippets.

@Ibro /Set.js
Last active Feb 27, 2018

Embed
What would you like to do?
CodingBlast blog - Set, Map - https://codingblast.com/javascript-set-map/
let set = new Set([9, 15]);
set.add(44);
let arr = [...set];
console.log(arr); // [9, 15, 44]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment