Elementals.js

Latest Version: 2.0 RC 3 14 March 2017

Method _.throwRange

Summary:

Throws a new RangeError if the passed variable is not a number, is 'Infinity', or outside a specified range.

Calling Convention:
_.throwRange(variable[, low[, high]])
Parameters:
variable
The variable to test.
low optional
If the variable is less than or this value, a rangeError will be thrown.
high optional
If the variable is greater than or this value, a rangeError will be thrown.
Returns:
nothing