static createFrom()
Creates the `Range` instance from the given random numbers and the step
Range.createFrom()
Range.createFrom()public static createFrom<Step extends number = 1>(
numbers: number[],
step: Step = 1 as Step
): Range<number, number, Step> {
return Range.create(
Math.min.apply(0, numbers),
Math.max.apply(0, numbers),
step
);
}Generic type variables
Parameters
step:Step
step:StepReturn type
Returns
Example usage
Last updated