mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 10:36:45 +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
|
||||
(...moreArgs) =>
|
||||
// and calls the original function with all of them
|
||||
f(...[...args, ...moreArgs]);
|
||||
f(...args, ...moreArgs);
|
||||
|
||||
// Something to apply
|
||||
const add3 = (a, b, c) => a + b + c;
|
||||
|
|
|
|||
Loading…
Reference in a new issue