Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 341 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 341 Bytes

replace-object-keys

Replace object keys to camel case from snake case

Usage

import { normalizeObject } from 'replace-object-keys'

const obj = { object_one: { hello_one: 1 } }
console.log(normalizeObject(obj))

Output

{ objectOne: { helloOne: 1 } }

Example

https://stackblitz.com/edit/replace-object-keys