Skip to content

macsmac/numit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numit

Just an iterator for numbers to generate arrays.

Installation

npm

npm i numit

Usage

require("numit"); // First require it

// examples
[...10] // => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[...-10] // => [-1, -2, -3, -4, -5, -6, -7, -8, -9, -10]
[...0] // => []
[...Infinity] // throws exception (e.g. must be safe integer)

// low-level
Number.range(10); // => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Testing

For testing first install all dependencies

npm install

Test command:

npm run test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published