mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Remove references to _.
This commit is contained in:
7
bind.js
7
bind.js
@@ -10,14 +10,13 @@ const WRAP_PARTIAL_FLAG = 32;
|
||||
* Creates a function that invokes `func` with the `this` binding of `thisArg`
|
||||
* and `partials` prepended to the arguments it receives.
|
||||
*
|
||||
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
|
||||
* The `bind.placeholder` value, which defaults to `_` in monolithic builds,
|
||||
* may be used as a placeholder for partially applied arguments.
|
||||
*
|
||||
* **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
|
||||
* property of bound functions.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Function
|
||||
* @param {Function} func The function to bind.
|
||||
@@ -32,12 +31,12 @@ const WRAP_PARTIAL_FLAG = 32;
|
||||
*
|
||||
* var object = { 'user': 'fred' };
|
||||
*
|
||||
* var bound = _.bind(greet, object, 'hi');
|
||||
* var bound = bind(greet, object, 'hi');
|
||||
* bound('!');
|
||||
* // => 'hi fred!'
|
||||
*
|
||||
* // Bound with placeholders.
|
||||
* var bound = _.bind(greet, object, _, '!');
|
||||
* var bound = bind(greet, object, _, '!');
|
||||
* bound('hi');
|
||||
* // => 'hi fred!'
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user