pmu

pair-me-up

Gives a range, each paired with one another

Showing:

Popularity

Downloads/wk

2

GitHub Stars

1

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

1

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

pair-me-up

Gives a range, each paired with one another

NPM

Usage

var pair = require('pair-me-up');
var pairs = pair(1, 30);

console.log(pairs);
// [[1, 5], [2, 17], [3, 2], [4, 10], ...]

You can also shuffle the resulting pairs:

var pair = require('pair-me-up');
var pairs = pair(1, 5, true);

console.log(pairs);
// [[3, 2], [5, 1], [2, 5], [4, 2], ...]

view on requirebin

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100