Adder will create an array of steps at regular intervals.
var adder = require('adder');
var steps = adder(10, 100, 10);
steps == [ 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ]
var steps = adder(1, 2.5, 6);
steps == [ 1, 1.3, 1.6, 1.9, 2.2, 2.5 ]
var steps = adder(0, 6.52, 6, 3);
steps == [ 0, 1.304, 2.608 , 3.912, 5.216, 6.52 ]
var adder(0, 5, 4, 0);
steps == [ 0, 1.6666666666666667, 3.3333333333333335, 5 ]
var steps = adder(10, -10, 5);
steps == [ 10, 5, 0, -5, -10 ]
Entire file is under 10 lines of code.
MIT license.