Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove an item by index position using splice

let removedItem = fruits.splice(pos, 1) // this is how to remove an item

// ["Strawberry", "Mango"]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Remove #item #index #position #splice
ADD COMMENT
Topic
Name
6+5 =