Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

initialize set with array javascript

var arr = [55, 44, 65];
var set = new Set(arr);
console.log(set.size === arr.length);
console.log(set.has(65));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #set #array #javascript
ADD COMMENT
Topic
Name
6+3 =