diff --git a/lodash.js b/lodash.js index bc2a0d6fa..629378af0 100644 --- a/lodash.js +++ b/lodash.js @@ -8610,6 +8610,7 @@ * * @static * @memberOf _ + * @alias iteratee * @category Utility * @param {*} [func=identity] The value to convert to a callback. * @param {*} [thisArg] The `this` binding of the created callback. @@ -9280,6 +9281,7 @@ lodash.each = forEach; lodash.eachRight = forEachRight; lodash.extend = assign; + lodash.iteratee = callback; lodash.methods = functions; lodash.object = zipObject; lodash.select = filter; diff --git a/test/test.js b/test/test.js index e0aced2f7..b83802996 100644 --- a/test/test.js +++ b/test/test.js @@ -2209,6 +2209,10 @@ skipTest(); } }); + + test('should be aliased', 1, function() { + strictEqual(_.iteratee, _.callback); + }); }()); /*--------------------------------------------------------------------------*/ @@ -11893,7 +11897,7 @@ var acceptFalsey = _.difference(allMethods, rejectFalsey); - test('should accept falsey arguments', 193, function() { + test('should accept falsey arguments', 194, function() { var emptyArrays = _.map(falsey, _.constant([])), isExposed = '_' in root, oldDash = root._;