Update snippet descriptions & tags
This commit is contained in:
@ -5,7 +5,8 @@ tags: object,function,intermediate
|
||||
|
||||
Binds methods of an object to the object itself, overwriting the existing method.
|
||||
|
||||
- Use `Array.prototype.forEach()` to return a `function` that uses `Function.prototype.apply()` to apply the given context (`obj`) to `fn` for each function specified.
|
||||
- Use `Array.prototype.forEach()` to iterate over the given `fns`.
|
||||
- Return a function for each one, using `Function.prototype.apply()` to apply the given context (`obj`) to `fn`.
|
||||
|
||||
```js
|
||||
const bindAll = (obj, ...fns) =>
|
||||
|
||||
Reference in New Issue
Block a user