Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove an item by index position

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
ADD COMMENT
Topic
Name
4+7 =