Last active
February 27, 2018 04:36
-
-
Save Ibro/5a9b12e3ccd49bed0f753f5890b80ba8 to your computer and use it in GitHub Desktop.
CodingBlast blog - Set, Map - https://codingblast.com/javascript-set-map/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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