DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+8 =
Submit