NON_NEGATIVE_INTEGERconstant

Sugar instance of NumberSchema for a non-negative integer (including zero). Equivalent to new NumberSchema({ step: 1, min: 0, max: Number.MAX_SAFE_INTEGER }).

Examples

NON_NEGATIVE_INTEGER.validate(0); // Returns 0