MCPcopy Index your code
hub / github.com/angular-ui/ui-router / arrayClasses

Function arrayClasses

test/angular/1.2/angular.js:18635–18650  ·  view source on GitHub ↗
(classVal)

Source from the content-addressed store, hash-verified

18633 }
18634
18635 function arrayClasses (classVal) {
18636 if (isArray(classVal)) {
18637 return classVal;
18638 } else if (isString(classVal)) {
18639 return classVal.split(' ');
18640 } else if (isObject(classVal)) {
18641 var classes = [], i = 0;
18642 forEach(classVal, function(v, k) {
18643 if (v) {
18644 classes = classes.concat(k.split(' '));
18645 }
18646 });
18647 return classes;
18648 }
18649 return classVal;
18650 }
18651 }];
18652}
18653

Callers 2

classDirectiveFunction · 0.70
ngClassWatchActionFunction · 0.70

Calls 4

isArrayFunction · 0.85
isStringFunction · 0.70
isObjectFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected