Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 322 Bytes

File metadata and controls

12 lines (8 loc) · 322 Bytes

@universalstandard/step-scale

Finds the step increment between two numbers and returns an array using that increment for the number of steps.

yarn add @universalstandard/step-scale

import stepScale from '@universalstandard/step-scale'

stepScale(5, 10, 4)
// [5, 6.666666666666667, 8.333333333333334, 10]