prototype.plant
最后更新于:2022-04-02 00:06:36
## 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]
```
';