Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Removing Elements

const set = new Set([1, 2, 3]);
console.log(set.values()); // Set Iterator [1, 2, 3]

// removing a particular element
set.delete(2);
console.log(set.values()); // Set Iterator [1, 3]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #Removing #Elements
ADD COMMENT
Topic
Name
4+3 =