next-points2range
Points to range for next.
installation
npm install -S @jswork/next-points2range
usage
import '@jswork/next-points2range';
const res = nx.points2range(1, 6, -1);
// results:
[
[ 0, 1 ],
[ 1, 6 ],
[ 6, -1 ],
[ -1 ]
]
license
Code released under the MIT license.