Validates the state of a number.
The returned validator throws an error immediately if a validation fails.
the type the value
the value
the name of the value
a validator for the value
TypeError if name is undefined or null
name
undefined
null
RangeError if name is empty
Validates the state of a number.
The returned validator throws an error immediately if a validation fails.