Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove array from array javascript

//THE ONLY - REMOVE ARRAY FROM ARRAY
let arr = [1,4,3,4,5];
let toRemove = [4,4];

toRemove.map(n => arr.splice(arr.indexOf(n),1));
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #remove #array #array #javascript
ADD COMMENT
Topic
Name
8+1 =