Skip to content

Repository files navigation

@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.

Releases

Packages

Contributors

Languages