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

@@ -4597,6 +4597,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.
@@ -5011,7 +5012,6 @@
lodash.wrap = wrap;
lodash.zip = zip;
// add aliases
lodash.collect = map;
lodash.drop = rest;
lodash.each = forEach;