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

4 lines
143 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
export default function removeElementsFromArray (array, elementsToRemove) {
return array.filter(item => !elementsToRemove.includes(item));
}