@lucid-softworks/object-map-keys
v0.1.0
Published
Transform an object's own enumerable keys.
Maintainers
Readme
@lucid-softworks/object-map-keys
Transform own enumerable string and symbol keys with full callback context. When transformed keys collide, the later property wins.
import { mapKeys } from "@lucid-softworks/object-map-keys";
mapKeys({ firstName: "Ada" }, (_, key) => key.toUpperCase());