Skip to content

Commit 98ab726

Browse files
committed
Merge pull request #9 from danillouz/fixes/compose
Fix second compose example
2 parents 372b8ec + 2eb9628 commit 98ab726

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
@@ -175,7 +175,7 @@ const toUpperCase = function(x) { return x.toUpperCase(); };
175175
const exclaim = function(x) { return x + '!'; };
176176
const moreExclaim = function(x) { return x + '!!!!!'; };
177177

178-
const reallyAngry = compose(exclaim, (toUpperCase, moreExclaim));
178+
const reallyAngry = compose(exclaim, compose(toUpperCase, moreExclaim));
179179

180180
reallyAngry("stop this");
181181
// STOP THIS!!!!!!

0 commit comments

Comments
 (0)