or function
dynamic
or(
- dynamic value,
- dynamic defaultValue
JS Patterns
Implementation
dynamic or(value, defaultValue) => falsey(value)
? defaultValue is Function
? defaultValue()
: defaultValue
: value;