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