Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 307 Bytes

File metadata and controls

11 lines (9 loc) · 307 Bytes

number-array-from-range2

Generates an array of a sequence of numbers from specified range.

const range = require("number-array-from-range2")

console.log(range(5, 10)) // [5, 6, 7, 8, 9, 10]
console.log(range(-3, 3)) // [-3, -2, -1, 0, 1, 2, 3]

Tests

Simply clone the repo and run npm test