MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / camelize

Function camelize

scripts/generate_metric_compare_strings.js:17–19  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

15};
16
17function camelize(string) {
18 return string.replace(/-./g, x => x[1].toUpperCase());
19}
20
21function capitalizeFirstLetter(string) {
22 return string.charAt(0).toUpperCase() + string.slice(1);

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected