MCPcopy Create free account
hub / github.com/apache/cloudstack / indexOf

Function indexOf

tools/ngui/static/js/lib/angular.js:525–532  ·  view source on GitHub ↗
(array, obj)

Source from the content-addressed store, hash-verified

523}
524
525function indexOf(array, obj) {
526 if (array.indexOf) return array.indexOf(obj);
527
528 for ( var i = 0; i < array.length; i++) {
529 if (obj === array[i]) return i;
530 }
531 return -1;
532}
533
534function arrayRemove(array, value) {
535 var index = indexOf(array, value);

Callers 4

includesFunction · 0.85
arrayRemoveFunction · 0.85
$RootScopeProviderFunction · 0.85
removePendingReqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected