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