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