I have array
[
["BS-BLACK-2", ..., "0"]
["BS-BLACK-3", ..., "0"],
["BS-BLACK-4", ..., "0"],
["BS-BLACK-5", ..., "0"]
]
And another array
["BS-BLACK-2","BS-BLACK-3"]
How to exclude all elements in 1st array if values found in second array. to have:
[["BS-BLACK-4", ..., "0"],["BS-BLACK-5", ..., "0"]]
I use below code but it works only with not nested arrays
newArray= oldArray.filter(function (el) {
return !toExcludeAray.includes(el);
}