Doc and var name tweaks to _.unzip, _.unzipWith, and _.zipWith.

This commit is contained in:
jdalton
2015-04-20 08:55:25 -07:00
parent 5929f7d23b
commit c8314b215b

View File

@@ -5923,7 +5923,7 @@
/** /**
* This method is like `_.zip` except that it accepts an array of grouped * This method is like `_.zip` except that it accepts an array of grouped
* elements and creates an array regrouping the elements to their pre-zipped * elements and creates an array regrouping the elements to their pre-zip
* configuration. * configuration.
* *
* @static * @static
@@ -5946,9 +5946,9 @@
var index = -1, var index = -1,
length = 0; length = 0;
array = arrayFilter(array, function(value) { array = arrayFilter(array, function(group) {
if (isArray(value) || isArguments(value)) { if (isArray(group) || isArguments(group)) {
length = nativeMax(value.length, length); length = nativeMax(group.length, length);
return true; return true;
} }
}); });
@@ -5962,7 +5962,7 @@
/** /**
* This method is like `_.unzip` except that it accepts an iteratee to specify * This method is like `_.unzip` except that it accepts an iteratee to specify
* how regrouped values should be combined. The `iteratee` is bound to `thisArg` * how regrouped values should be combined. The `iteratee` is bound to `thisArg`
* and invoked with four arguments: (accumulator, value, index, array). * and invoked with four arguments: (accumulator, value, index, group).
* *
* @static * @static
* @memberOf _ * @memberOf _
@@ -5989,8 +5989,8 @@
return result; return result;
} }
iteratee = bindCallback(iteratee, thisArg, 4); iteratee = bindCallback(iteratee, thisArg, 4);
return arrayMap(result, function(other) { return arrayMap(result, function(group) {
return arrayReduce(other, iteratee, undefined, true); return arrayReduce(group, iteratee, undefined, true);
}); });
} }
@@ -6108,7 +6108,7 @@
/** /**
* This method is like `_.zip` except that it accepts an iteratee to specify * This method is like `_.zip` except that it accepts an iteratee to specify
* how grouped values should be combined. The `iteratee` is bound to `thisArg` * how grouped values should be combined. The `iteratee` is bound to `thisArg`
* and invoked with four arguments: (accumulator, value, index, array). * and invoked with four arguments: (accumulator, value, index, group).
* *
* @static * @static
* @memberOf _ * @memberOf _