Controls non-finite values and optional integer or inclusive range constraints.
Returns boolean
Whether the value is an allowed number.
Remarks
Invalid bounds, reversed bounds, and NaN combined with an integer or range constraint return false. Omitting the new constraints preserves the existing non-finite-number behavior.
Check whether a value is a number allowed by the supplied options.
Usage:
Output: