MCPcopy Index your code
hub / github.com/plotly/dash / objPropsToCamel

Function objPropsToCamel

components/dash-table/src/core/objPropsToCamel.ts:4–18  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

2import {toCamelCase} from 'dash-table/derived/style/py2jsCssProperties';
3
4const objPropsToCamel = (value: any): any =>
5 value !== null && typeof value === 'object'
6 ? reduce(
7 (acc, [key, pValue]: [string, any]) =>
8 assoc(
9 toCamelCase(key.split('_')),
10 objPropsToCamel(pValue),
11 acc
12 ),
13 {} as any,
14 toPairs(value)
15 )
16 : Array.isArray(value)
17 ? value.map(objPropsToCamel, value)
18 : value;
19
20export default objPropsToCamel;

Callers 1

constructorMethod · 0.85

Calls 1

toCamelCaseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…