服务器

Array

Collection

Date

Function

Lang

Math

Number

Object

Seq

String

Util

Properties

Methods

_.prototype.plant(value)

创建链序列种植的克隆value作为包装值。

版本

3.2.0

参数
  1. value (*):plant的取值。
返回

(Object):返回新的lodash包装器实例。

Example
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]