Validate an input with a fallback
The validated type
The validator to use
The fallback
validateOr(isNumber, 0)(1) >> 1; validateOr(isNumber, 0)("1") >> 0; Copy
validateOr(isNumber, 0)(1) >> 1; validateOr(isNumber, 0)("1") >> 0;
Validate an input with a fallback