Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Access Set Elements

const set1 = new Set([1, 2, 3]);

// access the elements of a Set
console.log(set1.values()); // Set Iterator [1, 2, 3]
 
PREVIOUS NEXT
Tagged: #javascript #Access #Set #Elements
ADD COMMENT
Topic
Name
9+1 =