Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: function,intermediate
|
||||
|
||||
Creates a function that invokes each provided function with the arguments it receives and returns the results.
|
||||
|
||||
Use `Array.prototype.map()` and `Function.prototype.apply()` to apply each function to the given arguments.
|
||||
- Use `Array.prototype.map()` and `Function.prototype.apply()` to apply each function to the given arguments.
|
||||
|
||||
```js
|
||||
const over = (...fns) => (...args) => fns.map(fn => fn.apply(null, args));
|
||||
|
||||
Reference in New Issue
Block a user