compose 函数组合
最后更新于:2022-04-02 03:24:19
[TOC]
## compose
### hello world
```
var compose =function(f,g){
return function(x){
return f(g(x))
}
}
var append1=x=>x+"_1"
var append2=x=>x+"_2"
var c = compose(append1,append2)
console.log(c("ads")); //ads_2_1
```
';