@lucid-softworks/object-invert
v0.1.0
Published
Swap object keys and property-key values.
Maintainers
Readme
@lucid-softworks/object-invert
Swap own enumerable keys with values that are valid property keys. String and symbol keys are supported; later duplicate values win.
import { invert } from "@lucid-softworks/object-invert";
invert({ active: "A", inactive: "I" });