@lucid-softworks/array-permutations
v0.1.0
Published
Generate every permutation of an array.
Maintainers
Readme
@lucid-softworks/array-permutations
Generate every permutation of an array.
import { permutations } from "@lucid-softworks/array-permutations";
permutations([1, 2]); // [[1, 2], [2, 1]]See the exported types and tests for exact edge-case behavior.
