cartodb/lib/assets/javascripts/new-dashboard/utils/remove-items-from-array.js
2020-06-15 10:58:47 +08:00

4 lines
143 B
JavaScript

export default function removeElementsFromArray (array, elementsToRemove) {
return array.filter(item => !elementsToRemove.includes(item));
}