-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
This should be sufficient for the simple cases
const mapObject = (obj, fn) =>
Object.fromEntries(Object.entries(obj).map(([k, v]) => fn(k, v)))
Project link
https://github.com/sindresorhus/map-obj/
https://www.npmjs.com/package/map-obj
43081j
Metadata
Metadata
Assignees
Labels
No labels