Convert has a set of conversion utils functions, check the api to see what it is available.
yarn add @tipy/convertimport { convertSnakeToCamel } from '@tipy/convert';
convertSnakeToCamel({ first_name: 'Gus' });
// results: { firstName: 'Gus' }| Function name | Parameters | Description |
|---|---|---|
convertSnakeToCamel |
item: object |
it converts the object's attributes from snake_case to camelCase, you can also pass an array. but string, number and other primitives will be returned as they are. |