@frontendmonster/steps

1.0.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @frontendmonster/steps

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.97 kB

Total Files

4

Last publish

Collaborators

  • frontendmonster