DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript remove a specific item from an array
let array = [1, 2, 6, 4, 5, 6, 7]; array = array.filter(element => element !== 6); // [1,2,4,5,7]
PREVIOUS
NEXT
Tagged:
#javascript
#remove
#specific
#item
#array
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit