step-scaler
v1.0.1
Published
Finds the step increment between two numbers and returns an array using that increment for the number of steps.
Downloads
15
Readme
step-scaler
Finds the step increment between two numbers and returns an array using that increment for the number of steps.
yarn add step-scaler
import stepScaler from 'step-scaler'
stepScaler(5, 10, 4)
// [5, 6.666666666666667, 8.333333333333334, 10]