plant

Seq
since 3.2.0

Arguments

  • * The value to plant.

Returns

Object the new `lodash` wrapper instance.

Creates a clone of the chain sequence planting value as the wrapped value.

Example of Lodash _.plant

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]