通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
## prototype.plant + [link](./prototype-plant "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L7415 "View in source.") + [npm](https://www.npmjs.com/package/lodash.prototype.plant "See the npm package.") ``` _.prototype.plant(value) ``` 创建一个链式队列的拷贝,传入的值作为链式队列的值。 ### 参数 1. value (\*) 替换原值的值 ### 返回值 (Object) 返回 `lodash` 的包装实例 ### 示例 ``` function square(n) { return n * n; } var wrapped = _([1, 2]).map(square); var other = wrapped.plant([3, 4]); other.value(); // => [9, 16] wrapped.value(); // => [1, 4] ```