4 lines
143 B
JavaScript
4 lines
143 B
JavaScript
|
export default function removeElementsFromArray (array, elementsToRemove) {
|
||
|
return array.filter(item => !elementsToRemove.includes(item));
|
||
|
}
|