Count up and down between two numbers.
npm install count-between
const c = require('count-between')(2, 5, 5)
c(1) // 2
c(1) // 3
c(3) // 2
c(-2) // 4
c(0) // 4
c() // 4
min
{Number}
Minimum number.max
{Number}
Maximum number.initial
{Number}
Initial number.
{Function}({?Number})
Count-between instance.
modifier
{?Number}
{Number}
Current number.