LendAndRegret/node_modules/es-toolkit/dist/compat/array/remove.mjs
2026-05-02 17:27:43 +08:00

10 lines
301 B
JavaScript

import { remove as remove$1 } from '../../array/remove.mjs';
import { identity } from '../../function/identity.mjs';
import { iteratee } from '../util/iteratee.mjs';
function remove(arr, shouldRemoveElement = identity) {
return remove$1(arr, iteratee(shouldRemoveElement));
}
export { remove };