deep-object-mapper
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Deep Object Mapper

Map different bits from one object to another

Example usage:

const { 
  output,
} = deepMap<ElectricUpgradeKit, CombustionCar>({
  input,
  map: {
    "kit.engine": "engine",
    "kit.battery": "battery",
    "gizmo": "dashboard.gloveBox"
  },
})

/deep-object-mapper/

    Package Sidebar

    Install

    npm i deep-object-mapper

    Weekly Downloads

    129

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    11

    Last publish

    Collaborators

    • remimyrset