array-from-range

This module adds "fromRange" method to Array.prototype

Usage no npm install needed!

<script type="module">
  import arrayFromRange from 'https://cdn.skypack.dev/array-from-range';
</script>

README

Array.fromRange

This module adds fromRange method to Array.prototype. Use this module if you are not concerned about modifying Array.prototype.

Install

npm install array-from-range

How to use

require('array-from-range');

let range = Array.fromRange(5, 10);

console.log(range); // [ 5, 6, 7, 8, 9, 10 ]