Add _.callback as an alias of _.createCallback.

This commit is contained in:
John-David Dalton
2014-01-22 08:54:25 -08:00
parent ac1bb2a6bd
commit bbc3100bb3
8 changed files with 129 additions and 119 deletions

View File

@@ -6863,6 +6863,7 @@
*
* @static
* @memberOf _
* @alias callback
* @category Utilities
* @param {*} [func=identity] The value to convert to a callback.
* @param {*} [thisArg] The `this` binding of the created callback.
@@ -7384,6 +7385,7 @@
lodash.zipObject = zipObject;
// add aliases
lodash.callback = createCallback;
lodash.collect = map;
lodash.drop = rest;
lodash.each = forEach;