Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
17
function
camelize(string) {
18
return
string.replace(/-./g, x => x[1].toUpperCase());
19
}
20
21
function
capitalizeFirstLetter(string) {
22
return
string.charAt(0).toUpperCase() + string.slice(1);
Callers
1
generate_metric_compare_strings.js
File · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected