cartodb-4.42/lib/assets/javascripts/new-dashboard/utils/remove-items-from-array.js
2024-04-06 05:25:13 +00:00

4 lines
143 B
JavaScript

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