Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove from array by value

const index = array.indexOf(item);
if (index !== -1) array.splice(index, 1);
 
PREVIOUS NEXT
Tagged: #js #remove #array
ADD COMMENT
Topic
Name
6+1 =