MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / camelCase

Function camelCase

lib/test/angular/1.4.3/angular.js:2642–2648  ·  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

2640 * @param name Name to normalize
2641 */
2642function camelCase(name) {
2643 return name.
2644 replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {
2645 return offset ? letter.toUpperCase() : letter;
2646 }).
2647 replace(MOZ_HACK_REGEXP, 'Moz$1');
2648}
2649
2650var SINGLE_TAG_REGEXP = /^<(\w+)\s*\/?>(?:<\/\1>|)$/;
2651var HTML_REGEXP = /<|&#?\w+;/;

Callers 3

angular.jsFile · 0.70
directiveNormalizeFunction · 0.70
$SceProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected