MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / camelCase

Function camelCase

test/fixtures/foo.js:2245–2251  ·  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

2243 * @param name Name to normalize
2244 */
2245function camelCase(name) {
2246 return name.
2247 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
2248 return offset ? letter.toUpperCase() : letter;
2249 }).
2250 replace(MOZ_HACK_REGEXP, 'Moz$1');
2251}
2252
2253/////////////////////////////////////////////
2254// jQuery mutation patch

Callers 3

foo.jsFile · 0.85
directiveNormalizeFunction · 0.85
$SceProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected