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