From c699ff75744ca9ad354d21c6b2cedd067f83511d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 20 Nov 2015 21:57:17 -0800 Subject: [PATCH] Cleanup `wrapperAt`. --- lodash.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lodash.js b/lodash.js index f5527617d..6895920c2 100644 --- a/lodash.js +++ b/lodash.js @@ -6882,7 +6882,7 @@ } /** - * Creates a wrapped array of values corresponding to `paths` of the wrapped object. + * This method is the wrapper version of `_.at`. * * @name at * @memberOf _ @@ -6894,10 +6894,10 @@ * * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] }; * - * _(object).at(['a[0].b.c', 'a[1]']); + * _(object).at(['a[0].b.c', 'a[1]']).value(); * // => [3, 4] * - * _(['a', 'b', 'c']).at(0, 2); + * _(['a', 'b', 'c']).at(0, 2).value(); * // => ['a', 'c'] */ var wrapperAt = rest(function(paths) { @@ -6912,11 +6912,11 @@ } value = value.slice(start, +start + (length ? 1 : 0)); value.__actions__.push({ 'func': thru, 'args': [interceptor], 'thisArg': undefined }); - return new LodashWrapper(value, this.__chain__).thru(function(object) { - if (length && !object.length) { - object.push(undefined); + return new LodashWrapper(value, this.__chain__).thru(function(array) { + if (length && !array.length) { + array.push(undefined); } - return object; + return array; }); });