💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## pull + [link](./pull "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L6258 "View in source.") + [npm](https://www.npmjs.com/package/lodash.pull "See the npm package.") ``` _.pull(array, [values]) ``` 移除所有经过 [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) 等值比较为 true 的元素 **注意:** 不同于 `_.without`,这个方法会改变数组。 ### 参数 1. array (Array) 需要调整的数组 2. [values] (...*) 要移除的值 ### 返回值 (Array) 返回数组本身 ### 示例 ``` var array = [1, 2, 3, 1, 2, 3]; _.pull(array, 2, 3); console.log(array); // => [1, 1] ```