Last active
February 27, 2018 05:23
-
-
Save Ibro/7dae242fea73cce06de387a22515cba0 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 arr = [ 13, 11, 15, 21, 13, 11, 17, 17, 19, 19, 21 ]; | |
let uniqueArray = [...new Set(arr)]; | |
console.log(uniqueArray); // [13, 11, 15, 21, 17, 19] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment