MCPcopy Create free account
hub / github.com/angular-ui/ui-router / indexOf

Function indexOf

test/angular/1.2/angular.js:770–777  ·  view source on GitHub ↗
(array, obj)

Source from the content-addressed store, hash-verified

768}
769
770function indexOf(array, obj) {
771 if (array.indexOf) return array.indexOf(obj);
772
773 for (var i = 0; i < array.length; i++) {
774 if (obj === array[i]) return i;
775 }
776 return -1;
777}
778
779function arrayRemove(array, value) {
780 var index = indexOf(array, value);

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected