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

12 lines
311 B
JavaScript

import { without as without$1 } from '../../array/without.mjs';
import { isArrayLikeObject } from '../predicate/isArrayLikeObject.mjs';
function without(array, ...values) {
if (!isArrayLikeObject(array)) {
return [];
}
return without$1(Array.from(array), ...values);
}
export { without };