Replace object keys to camel case from snake case
import { normalizeObject } from 'replace-object-keys'
const obj = { object_one: { hello_one: 1 } }
console.log(normalizeObject(obj))
Output
{ objectOne: { helloOne: 1 } }
Replace object keys to camel case from snake case
import { normalizeObject } from 'replace-object-keys'
const obj = { object_one: { hello_one: 1 } }
console.log(normalizeObject(obj))
Output
{ objectOne: { helloOne: 1 } }