Home > rc-js-util > fpValueOrNull
Returns the value if the predicate is true, else null.
Signature:
export declare function fpValueOrNull<TValue>(predicate: boolean, value: TValue): TValue | null;
Parameter | Type | Description |
---|---|---|
predicate | boolean | |
value | TValue |
Returns:
TValue | null
See fpValueOrNull().