static isRange()
Checks whether the value is an instance of `Range` of any or the given minimum, maximum, and step
Range.isRange()
Range.isRange()
The static isRange()
method checks whether the value
is an instance of Range
of any or the given minimum, maximum range and step.
Generic type variables
A generic type variable constrained by the number
, by default of the value captured from the supplied min
indicates the minimum range type via the return type.
A generic type variable constrained by the number
, by default of the value captured from the supplied max
indicates the maximum range type via the return type.
A generic type variable constrained by the number
, by default of the value equal to 1
, optionally captured from the supplied step
indicates the range step type via return type.
Parameters
The value of any
type to test against the Range
instance.
The optional minimum range of generic type variable Min
to check whether it's equal to a minimum of the given value
.
The optional maximum range of generic type variable Max
to check whether it's equal to a maximum of the given value
.
Optional step of generic type variable Step
to check whether it's equal to the step of the given value
.
Return type
The return type is a boolean
resulting from its statement indicating the value
is the Range
object that takes the generic type variable Min
, Max
and Step
.
Returns
The return value is a boolean
indicating whether the provided value
is an instance of Range
of any or the given minimum, maximum range and step
.
Example usage
Last updated