Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove multiple items from array js

const removeFromArray = function (array, ...items) {
    let remove = [...items];
    return array.filter(value => !remove.includes(value));
 
PREVIOUS NEXT
Tagged: #remove #multiple #items #array #js
ADD COMMENT
Topic
Name
3+8 =