Search
 
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
Name
7+1 =