Update rearg.md
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: rearg
|
title: rearg
|
||||||
tags: adapter,function,intermediate
|
tags: function,intermediate
|
||||||
---
|
---
|
||||||
|
|
||||||
Creates a function that invokes the provided function with its arguments arranged according to the specified indexes.
|
Creates a function that invokes the provided function with its arguments arranged according to the specified indexes.
|
||||||
@ -19,4 +19,4 @@ var rearged = rearg(
|
|||||||
[2, 0, 1]
|
[2, 0, 1]
|
||||||
);
|
);
|
||||||
rearged('b', 'c', 'a'); // ['a', 'b', 'c']
|
rearged('b', 'c', 'a'); // ['a', 'b', 'c']
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user