1.0.2 • Published 3 years ago

all-permutations v1.0.2

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

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 ]
]
*/
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago