MCPcopy
hub / github.com/apache/echarts / toCamelCase

Function toCamelCase

src/util/format.ts:41–51  ·  view source on GitHub ↗
(str: string, upperCaseFirst?: boolean)

Source from the content-addressed store, hash-verified

39}
40
41export function toCamelCase(str: string, upperCaseFirst?: boolean): string {
42 str = (str || '').toLowerCase().replace(/-(.)/g, function (match, group1) {
43 return group1.toUpperCase();
44 });
45
46 if (upperCaseFirst && str) {
47 str = str.charAt(0).toUpperCase() + str.slice(1);
48 }
49
50 return str;
51}
52
53export const normalizeCssArray = zrUtil.normalizeCssArray;
54

Callers 2

assembleCssTextFunction · 0.90
toCSSVendorPrefixFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…