Skip to content

Commit e8b7f43

Browse files
committed
Update compose.js
Fix comment
1 parent 39072e3 commit e8b7f43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/compose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @param {...Function} funcs The functions to compose.
55
* @returns {Function} A function obtained by composing functions from right to
6-
* left. For example, compose(f, g, h) is identical to x => h(g(f(x))).
6+
* left. For example, compose(f, g, h) is identical to arg => f(g(h(arg))).
77
*/
88
export default function compose(...funcs) {
99
return arg => funcs.reduceRight((composed, f) => f(composed), arg);

0 commit comments

Comments
 (0)