cartodb/lib/assets/javascripts/new-dashboard/utils/remove-items-from-array.js

4 lines
143 B
JavaScript
Raw Normal View History

2020-06-15 10:58:47 +08:00
export default function removeElementsFromArray (array, elementsToRemove) {
return array.filter(item => !elementsToRemove.includes(item));
}