Skip to content

Commit fa1a79c

Browse files
committed
Add partialRight utility function
1 parent a7f6032 commit fa1a79c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web/js/utils/functional.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const partialRight = (fn, presetArgs) => (...laterArgs) =>
2+
fn(...laterArgs, ...presetArgs);
3+
4+
export { partialRight };

0 commit comments

Comments
 (0)