MCPcopy 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 */
135export function hypenCaseToCamelCase(hyphenCase) {
136 return hyphenCase.replace(/-./g, (match) => match.slice(1).toUpperCase());
137}

Callers 2

setPropertyFunction · 0.90
setPropertyFunction · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected