@lucid-softworks/map-invert
v0.1.0
Published
Invert Map keys and values with explicit collision behavior.
Downloads
57
Maintainers
Readme
@lucid-softworks/map-invert
Invert Map keys and values with explicit collision behavior.
import { invertMap } from "@lucid-softworks/map-invert";
invertMap(new Map([["a", 1]])); // Map([[1, "a"]])See the exported types and tests for exact edge-case behavior.
