- Preparing search index...
- The search index is not available
statementjs
Constructors
constructor
- new If<T>(truthy: (() => boolean), value: (() => T)): If<T>
-
Parameters
-
truthy: (() => boolean)
-
- (): boolean
-
Returns boolean
-
value: (() => T)
Returns If<T>
Properties
Private
Readonly
#truthy
#truthy: (() => boolean)
Type declaration
-
- (): boolean
-
Returns boolean
Private
Readonly
#value
#value: (() => T)
Methods
else
- else(value: (() => T)): T
-
Returns T
elseIf
- elseIf(truthy: (() => boolean), value: (() => T)): If<T>
-
Parameters
-
truthy: (() => boolean)
-
- (): boolean
-
Returns boolean
-
value: (() => T)
Returns If<T>
An inline if/else statement class, with optional elseifs.