@jswork/next-points2range

Points to range for next.

Usage no npm install needed!

<script type="module">
  import jsworkNextPoints2range from 'https://cdn.skypack.dev/@jswork/next-points2range';
</script>

README

next-points2range

Points to range for next.

version license size download

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.