0.0.2 • Published 7 years ago

limited-permutation v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

limited-permutation

Generate a limited permutation, for NodeJS

Install

npm install limited-permutation

Usage

const permutation = require('limited-permutation');

const result = permutation('abc', 2);
console.log(result); 

STDOUT is below;

[
  [ 'a', 'a' ],
  [ 'a', 'b' ],
  [ 'a', 'c' ],
  [ 'b', 'a' ],
  [ 'b', 'b' ],
  [ 'b', 'c' ],
  [ 'c', 'a' ],
  [ 'c', 'b' ],
  [ 'c', 'c' ]
]

Author

ktrysmt

License

MIT

0.0.2

7 years ago

0.0.1

7 years ago