Bump to v4.7.0.

This commit is contained in:
John-David Dalton
2016-03-25 23:47:49 -07:00
parent 501d6b1d41
commit 18d0f1d873
419 changed files with 4042 additions and 2066 deletions

View File

@@ -14,6 +14,7 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*
* @static
* @memberOf _
* @since 4.0.0
* @category Util
* @param {Array} pairs The predicate-function pairs.
* @returns {Function} Returns the new function.
@@ -35,13 +36,14 @@ var FUNC_ERROR_TEXT = 'Expected a function';
* // => 'no match'
*/
function cond(pairs) {
var length = pairs ? pairs.length : 0;
var length = pairs ? pairs.length : 0,
toIteratee = baseIteratee;
pairs = !length ? [] : arrayMap(pairs, function(pair) {
if (typeof pair[1] != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
return [baseIteratee(pair[0]), pair[1]];
return [toIteratee(pair[0]), pair[1]];
});
return rest(function(args) {