all-permutations

1.0.2 • Public • Published

all-permutations

Get every single possible arrangement of a set of items

Usage

const {allPermutations} = require("all-permutations")
console.log(new Set([1, 2, 3]));
/*
[
	[ 1, 2, 3 ],
	[ 1, 3, 2 ],
	[ 2, 3, 1 ],
	[ 2, 1, 3 ],
	[ 3, 1, 2 ],
	[ 3, 2, 1 ]
]
*/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i all-permutations

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.12 kB

Total Files

4

Last publish

Collaborators

  • aritz-cracker