tn-mapobj
v1.0.0
Published
Mapping an object just like array map
Downloads
2
Readme
Usage
import { mapobj } from 'tn-mapobj'
const object = { ... }
const mapped = mapobj(object, ({ key, value }) => {
return {
key: `changed-key-${key}`,
value: `changed-value-${value}`
}
})