MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / camelize

Function camelize

examples/simple/react.js:17667–17671  ·  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

17665 * @return {string}
17666 */
17667function camelize(string) {
17668 return string.replace(_hyphenPattern, function (_, character) {
17669 return character.toUpperCase();
17670 });
17671}
17672
17673module.exports = camelize;
17674},{}],131:[function(_dereq_,module,exports){

Callers 1

camelizeStyleNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected