Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set to array js

const set = new Set([1, 2, 2]); // Set(2) { 1, 2 }
const array = [...set]; // [1, 2]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #array #js
ADD COMMENT
Topic
Name
1+3 =