INTEGERconstant

Sugar instance of NumberSchema for an integer. Equivalent to new NumberSchema({ step: 1, min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }).

Examples

INTEGER.validate("42.7"); // Returns 43 (rounded to step)