JSFiddle - React, Tailwind, and code Playground
by crowjonah
JavaScript
var a = [ 1,2,3,4,5,6,7,8],
b = [ 6,7,8 ] //<<<These items need to be removed from a
removeItemsFromAThatAreListedInB(a, b);
function removeItemsFromAThatAreListedInB(a, b )
{
a = a.filter(function(item) {
return b.indexOf(item) === -1;
});
document.write( a )
}