Update snippet descriptions & tags

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-18 23:04:45 +03:00
parent 216c3ac77a
commit 2b6f2b1740
22 changed files with 47 additions and 38 deletions

View File

@ -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) =>