let pull = (arr, values) => {
return arr.filter((item) => {
return values.indexOf(item) < 0;
});
};
array = ["a", "b", "c", "a", "b", "c"];
result = pull(array, ["a", "c"]);
document.write(JSON.stringify(result));
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.