static createFrom()
Creates the `Range` instance from the given random numbers and the step
Range.createFrom()
Range.createFrom()
Creates the Range
instance from the given random numbers
and the step
.
range.class.ts
Generic type variables
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 of a new Range
instance.
Parameters
An Array
of numbers to find a range and create a new instance.
step:
Step
step:
Step
Optional step of generic type variable Step
to set with a new Range
instance, by default 1
.
Return type
The return type is the Range
object that takes generic type variable Step
.
Returns
The return value is the Range
instance created from the given required random numbers and the optional step.
Example usage
Last updated