tn-mapobj
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Bundle Size - 681 bytes gzipped

Usage

import { mapobj } from 'tn-mapobj'
const object = { ... }

const mapped = mapobj(object, ({ key, value }) => {
  return {
    key: `changed-key-${key}`,
    value: `changed-value-${value}`
  }
})

Readme

Keywords

Package Sidebar

Install

npm i tn-mapobj

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

8.63 kB

Total Files

16

Last publish

Collaborators

  • turnova