Skip to content
This repository was archived by the owner on Apr 10, 2020. It is now read-only.

ASafaeirad/steps

Repository files navigation

@frontendmonster/setps

Creates array of numbers from start to end point with specific steps.

Usage

import steps from '@frontendmonster/steps';

steps(0, 5, 1); // [0, .2, .4, .6, .8, 1]
steps(0, 2, 1); // [0, .5, 1]
steps(0, .3, 4) // Error: Can't reach end with 0.3 steps

About

creates array of numbers from start to end point with specific steps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published