Skip to content

or

Summary

Functional equivalent of a || b but works with logical truth instead of truthy.

Tip

This is an operator function.

Examples

1
2
map(or(42))([0, 1, false]);
//=> [0, 1, 42]

Parameters

Name Type Description
a ?
b ?

Return

?

AltStyle によって変換されたページ (->オリジナル) /