Compose an array of exactly 2 functions from bottom to top (right to left).
Returns the fallback if x is null or undefined.
fallback
x
compose3, compose4
compose3
compose4
compose2('fallback')([y => y.toString(), x => x / 2])(42)// => "21"compose2('fallback')([y => y.toString(), x => x / 2])(undefined)// => "fallback" Copy
compose2('fallback')([y => y.toString(), x => x / 2])(42)// => "21"compose2('fallback')([y => y.toString(), x => x / 2])(undefined)// => "fallback"
Generated using TypeDoc
Compose an array of exactly 2 functions from bottom to top (right to left).
Returns the
fallback
ifx
is null or undefined.