Removes the passed items if they exist in the array, otherwise does nothing.
Mutates the given array.
const arr1 = ["a", "b", "c"]const arr2 = ["a", "b"]const res = removeIfIn(arr1, ...arr2) Copy
const arr1 = ["a", "b", "c"]const arr2 = ["a", "b"]const res = removeIfIn(arr1, ...arr2)
Removes the passed items if they exist in the array, otherwise does nothing.
Mutates the given array.