mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
greet, exclaim -> exclaim, greet. Issue #110
This commit is contained in:
@@ -766,7 +766,7 @@ hello();
|
||||
<pre>
|
||||
var greet = function(name){ return "hi: " + name; };
|
||||
var exclaim = function(statement){ return statement + "!"; };
|
||||
var welcome = _.compose(greet, exclaim);
|
||||
var welcome = _.compose(exclaim, greet);
|
||||
welcome('moe');
|
||||
=> 'hi: moe!'
|
||||
</pre>
|
||||
|
||||
Reference in New Issue
Block a user