Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ hypenCaseToCamelCase
Function
hypenCaseToCamelCase
testing/helpers/index.js:135–137 ·
view source on GitHub ↗
(hyphenCase)
Source
from the content-addressed store, hash-verified
133
* @
return
{string} camelCased string
134
*/
135
export
function
hypenCaseToCamelCase(hyphenCase) {
136
return
hyphenCase.replace(/-./g, (match) => match.slice(1).toUpperCase());
137
}
Callers
2
setProperty
Function · 0.90
setProperty
Function · 0.90
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected