@lucid-softworks/array-combinations
v0.1.0
Published
Generate fixed-size combinations from an array.
Maintainers
Readme
@lucid-softworks/array-combinations
Generate fixed-size combinations from an array.
import { combinations } from "@lucid-softworks/array-combinations";
combinations(["a", "b", "c"], 2); // [["a", "b"], ["a", "c"], ["b", "c"]]See the exported types and tests for exact edge-case behavior.
