mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-10 20:46:51 +00:00
Update readme.md (#98)
Remove useless array from `partial` example definition
This commit is contained in:
parent
82e18f311f
commit
946058d20a
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ const partial = (f, ...args) =>
|
||||||
// returns a function that takes the rest of the arguments
|
// returns a function that takes the rest of the arguments
|
||||||
(...moreArgs) =>
|
(...moreArgs) =>
|
||||||
// and calls the original function with all of them
|
// and calls the original function with all of them
|
||||||
f(...[...args, ...moreArgs]);
|
f(...args, ...moreArgs);
|
||||||
|
|
||||||
// Something to apply
|
// Something to apply
|
||||||
const add3 = (a, b, c) => a + b + c;
|
const add3 = (a, b, c) => a + b + c;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue