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 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