Skip to content
Unique generator from a consecutively number list
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md





consecutively-unique: unique generator from a consecutively number list

Install

$ npm install consecutively-unique

Why?

  • Why not 😂
  • Clean and focused
  • Actively maintained

Usage

const cU = require('consecutively-unique');
const val = cU(1, 20);

console.log(val(), val(), val(), val());
//=> 18 7 1 10

API

cU(minValue, maxValue)

Return a function with a unique value unique value form a consecutively number list

Team

Carlos Abraham Logo
Carlos Abraham

Related

  • cu: same thing but in Python

License

MIT License © Carlos Abraham

You can’t perform that action at this time.