From 07b13eedecfb6f003aa1199cbe081e1e935a248e Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 12 Feb 2015 12:46:57 -0800 Subject: [PATCH] Cleanup `_#plant` and `_.spread` doc examples. [ci skip] --- lodash.src.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index 908542556..b3bba39e4 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -5665,7 +5665,9 @@ * @example * * var array = [1, 2]; - * var wrapper = _(array).map(_.partial(Math.pow, _, 2)); + * var wrapper = _(array).map(function(value) { + * return Math.pow(value, 2); + * }); * * var other = [3, 4]; * var otherWrapper = wrapper.plant(other); @@ -7834,11 +7836,9 @@ * Promise.resolve(36) * ]); * - * var add = function(x, y) { + * numbers.then(_.spread(function(x, y) { * return x + y; - * }; - * - * numbers.then(_.spread(add)); + * })); * // => a Promise of 76 */ function spread(func) {