@lucid-softworks/array-zip
v0.1.0
Published
Zip heterogeneous arrays into strongly typed tuples.
Maintainers
Readme
@lucid-softworks/array-zip
Combine heterogeneous arrays by index with strongly typed tuple output.
import { zip } from "@lucid-softworks/array-zip";
zip([1, 2], ["a", "b"], [true, false]);
// [[1, "a", true], [2, "b", false]]Zipping stops at the shortest input. No input arrays—or any empty input—produce
[]. Inputs are never mutated.
