Skip to content

Function Compose

Posted on:June 23, 2023 at 09:31 AM

function compose(f,g )


return function(...args) {
// call only on parameter

// apply
    f.apply(this,  g.apply(this.args, arguments))
}