From b53a8e873d9199a180bd7ab0878a0139029f7d13 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 23 Aug 2015 23:36:55 -0700 Subject: [PATCH] Rename the `baseIteratee` param `func` to `value`. --- lodash.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lodash.js b/lodash.js index c0cf614cb..22824aa5b 100644 --- a/lodash.js +++ b/lodash.js @@ -2148,23 +2148,23 @@ * The base implementation of `_.iteratee`. * * @private - * @param {*} [func=_.identity] The value to convert to an iteratee. + * @param {*} [value=_.identity] The value to convert to an iteratee. * @returns {Function} Returns the iteratee. */ - function baseIteratee(func) { - var type = typeof func; + function baseIteratee(value) { + var type = typeof value; if (type == 'function') { - return func; + return value; } - if (func == null) { + if (value == null) { return identity; } if (type == 'object') { - return isArray(func) - ? baseMatchesProperty(func[0], func[1]) - : baseMatches(func); + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); } - return property(func); + return property(value); } /**