@tipy/convert
v1.0.0
Published
Convert simply contains convertion basic function such as convertSnakeToCamel
Readme
Convert
Convert has a set of convertion utils functions, check the api to see what it is available.
Install
yarn add @tipy/convertHow to use
import { convertSnakeToCamel } from '@tipy/convert';
convertSnakeToCamel({ first_name: 'Gus' });API
| Function name | Parameters | Description |
|-----|-----|-----|
| convertSnakeToCamel | item: object | it converts the object's attributes from snake_case to camelCase, you can also pass an array. string, number and other primitives will be returned as they are. |
