Lodash _.prototype.plant() Method
The _.prototype.plant(value) method of Sequence in lodash is used to create a clone of the chain sequence type by planting the value to be planted as the wrapped value.
Parameters: This method accepts single parameter as mentioned above and described below:
- value: It is the value that need to be planted.
Return Value: This method returns the new lodash wrapper instance.
[ 16, 16 ] [ 8, 8 ]
[ 25, 35 ]
Here, the values are multiplied by 5 and then returned as output.