Answers for "initialize set with array javascript"

0

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));
Posted by: Guest on October-04-2021

Code answers related to "initialize set with array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language