mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Remove references to _.
This commit is contained in:
@@ -20,12 +20,12 @@ const nativeMin = Math.min;
|
||||
* Merges the function metadata of `source` into `data`.
|
||||
*
|
||||
* Merging metadata reduces the number of wrappers used to invoke a function.
|
||||
* This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
|
||||
* may be applied regardless of execution order. Methods like `_.ary` and
|
||||
* `_.rearg` modify function arguments, making the order in which they are
|
||||
* This is possible because methods like `bind`, `curry`, and `partial`
|
||||
* may be applied regardless of execution order. Methods like `ary` and
|
||||
* `rearg` modify function arguments, making the order in which they are
|
||||
* executed important, preventing the merging of metadata. However, we make
|
||||
* an exception for a safe combined case where curried functions have `_.ary`
|
||||
* and or `_.rearg` applied.
|
||||
* an exception for a safe combined case where curried functions have `ary`
|
||||
* and or `rearg` applied.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} data The destination metadata.
|
||||
|
||||
Reference in New Issue
Block a user