es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
10 lines (7 loc) • 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 };