PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
inquirer
/
node_modules
/
lodash
/
chain
var baseLodash = require('../internal/baseLodash'), wrapperClone = require('../internal/wrapperClone'); /** * Creates a clone of the chained sequence planting `value` as the wrapped value. * * @name plant * @memberOf _ * @category Chain * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var array = [1, 2]; * var wrapped = _(array).map(function(value) { * return Math.pow(value, 2); * }); * * var other = [3, 4]; * var otherWrapped = wrapped.plant(other); * * otherWrapped.value(); * // => [9, 16] * * wrapped.value(); * // => [1, 4] */ function wrapperPlant(value) { var result, parent = this; while (parent instanceof baseLodash) { var clone = wrapperClone(parent); if (result) { previous.__wrapped__ = clone; } else { result = clone; } var previous = clone; parent = parent.__wrapped__; } previous.__wrapped__ = value; return result; } module.exports = wrapperPlant;
[-] thru.js
[edit]
[-] concat.js
[edit]
[-] toString.js
[edit]
[-] wrapperChain.js
[edit]
[+]
..
[-] run.js
[edit]
[-] wrapperToString.js
[edit]
[-] lodash.js
[edit]
[-] chain.js
[edit]
[-] wrapperConcat.js
[edit]
[-] value.js
[edit]
[-] wrapperValue.js
[edit]
[-] valueOf.js
[edit]
[-] tap.js
[edit]
[-] plant.js
[edit]
[-] wrapperPlant.js
[edit]
[-] reverse.js
[edit]
[-] wrapperReverse.js
[edit]
[-] toJSON.js
[edit]
[-] commit.js
[edit]
[-] wrapperCommit.js
[edit]