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