Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove all elements of one array from another javascript

a = a.filter(function (item) {
    return b.indexOf(item) === -1;
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #elements #array #javascript
ADD COMMENT
Topic
Name
3+7 =