Skip to content

Commit 946058d

Browse files
Isiah Meadowshemanth
authored andcommitted
Update readme.md (#98)
Remove useless array from `partial` example definition
1 parent 82e18f3 commit 946058d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const partial = (f, ...args) =>
113113
// returns a function that takes the rest of the arguments
114114
(...moreArgs) =>
115115
// and calls the original function with all of them
116-
f(...[...args, ...moreArgs]);
116+
f(...args, ...moreArgs);
117117

118118
// Something to apply
119119
const add3 = (a, b, c) => a + b + c;

0 commit comments

Comments
 (0)