MCPcopy Create free account
hub / github.com/Lobos/react-ui / camelize

Function camelize

docs/lib/react.js:18227–18231  ·  view source on GitHub ↗

* Camelcases a hyphenated string, for example: * * > camelize('background-color') * < "backgroundColor" * * @param {string} string * @return {string}

(string)

Source from the content-addressed store, hash-verified

18225 * @return {string}
18226 */
18227function camelize(string) {
18228 return string.replace(_hyphenPattern, function (_, character) {
18229 return character.toUpperCase();
18230 });
18231}
18232
18233module.exports = camelize;
18234},{}],144:[function(_dereq_,module,exports){

Callers 1

camelizeStyleNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…