企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## without + [link](./without "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L6982 "View in source.") + [npm](https://www.npmjs.com/package/lodash.without "See the npm package.") ``` _.without(array, [values]) ``` 创建一个移除了所有提供的 values 的数组。使用了 [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) 等值比较。 ### 参数 1. array (Array) 要处理的数组 2. [values] (...*) 要排除的值 ### 返回值 (Array) 返回一个处理好的新数组 ### 示例 ``` _.without([1, 2, 1, 3], 1, 2); // => [3] ```