Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Last active January 22, 2017 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackjutsu/eaee28b85282bf8235082e55c3966ae4 to your computer and use it in GitHub Desktop.
Save hackjutsu/eaee28b85282bf8235082e55c3966ae4 to your computer and use it in GitHub Desktop.
Convert js Set to Array
// using Array.from
let array = Array.from(mySet);
// simply spreading the Set out in an array
let array = [...mySet];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment