DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
delete item from list javascript
const array = [1, 2, 3]; const index = array.indexOf(2); if (index > -1) { array.splice(index, 1); }
PREVIOUS
NEXT
Tagged:
#delete
#item
#list
#javascript
ADD COMMENT
Topic
COMMENT
Name
1+6 =
Submit