Documentation

nonnegative()

Validates that the number is non-negative (greater than or equal to 0).

nonnegative(error?: StringConvertible): this;

Parameters

Return value

This builder, for chaining.

Related