autoincrementnumber
v1.0.2
Published
Incerement number by one.
Downloads
1
Readme
About
Incerement number by one.
Installation
Use the package autoincrementnumber
npm install autoincrementnumber
Usage
const autoincrementnumber = require('autoincrementnumber');
const genNumber = autoincrementnumber(0) // set the initial value here
let { value1 } = genNumber.next(); // 1
let { value2 } = genNumber.next(); // 2
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.