camelCaseProps

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object

This function simply take an object as argument and return the same one but with properties in camel case.

Params

  1. object*-Object

    An object on which to apply the camel case treatment

  2. settings{}IApplyScopeSettings

    Some settings to configure your scope application process

Example

import { camelCaseProps } from '@blackbyte/sugar/object';
camelCaseProps({
   'hello-world': true
});
// {
//   helloWorld: true
// }

Settings

  1. deeptrueBoolean

    Specify if you want to apply the treatment deep in the object or just in the first level

Todo

  • testsnormal