Skip to content

Commit 2eb9628

Browse files
author
Daniel Illouz
committed
Fix second compose example
The `toUpperCase` and `moreExclaim` functions were not being composed. Closes #8
1 parent 372b8ec commit 2eb9628

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)