MCPcopy Create free account
hub / github.com/binux/qiandao / camelCase

Function camelCase

web/static/components/angularjs/angular.js:2235–2241  ·  view source on GitHub ↗

* Converts snake_case to camelCase. * Also there is special case for Moz prefix starting with upper case letter. * @param name Name to normalize

(name)

Source from the content-addressed store, hash-verified

2233 * @param name Name to normalize
2234 */
2235function camelCase(name) {
2236 return name.
2237 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
2238 return offset ? letter.toUpperCase() : letter;
2239 }).
2240 replace(MOZ_HACK_REGEXP, 'Moz$1');
2241}
2242
2243/////////////////////////////////////////////
2244// jQuery mutation patch

Callers 3

angular.jsFile · 0.85
directiveNormalizeFunction · 0.85
$SceProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected