Reorder parameters if compose so that it uses the natural mathematical sense
This commit is contained in:
parent
4c9373a055
commit
56afea119a
1 changed files with 1 additions and 1 deletions
2
fun.js
2
fun.js
|
@ -21,7 +21,7 @@ function Fun() {
|
|||
|
||||
function compose(f, g) {
|
||||
return function() {
|
||||
return g(f.apply(null, arguments));
|
||||
return f(g.apply(null, arguments));
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue