Code styling

This commit is contained in:
Angelos Chalaris
2018-08-13 14:25:31 +03:00
parent 256f88b277
commit fc625b6229
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ Creates a function that invokes the provided function with its arguments arrange
Use `Array.map()` to reorder arguments based on `indexes` in combination with the spread operator (`...`) to pass the transformed arguments to `fn`.
```js
const rearg = (fn, indexes) => (...args) => fn(...indexes.map(idx => args[idx]));
const rearg = (fn, indexes) => (...args) => fn(...indexes.map(i => args[i]));
```
```js