Skip to content

mk0x9/integer-sequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integer Sequence

Build Status

A package providing integer sequence object wrapping the range from Number.MIN_SAFE_INTEGER to Number.MAX_SAFE_INTEGER.

Usage

var IntegerSequence = require('integer-sequence');
var seq = new IntegerSequence(5);

seq.next(); // => 6
seq.next(); // => 7
seq.prev(7); // => 0
seq.next(Number.MAX_SAFE_INTEGER); // => 9007199254740991
seq.next(); // => -9007199254740991

License

Creative Commons Zero 1.0 Universal (CC0).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published