Module: compose

Methods

(inner) compose(f, g) → {function}

Performs right-to-left function composition.
Parameters:
Name Type Description
f function
g function
Source:
Returns:
Type
function
Example
var f = function(x){ return x * x}
var g = function(x){ return x + 2}
let composed = compose(f,g)