mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Add _.callback as an alias of _.createCallback.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user