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

Function indexOf

test/fixtures/foo.js:768–775  ·  view source on GitHub ↗
(array, obj)

Source from the content-addressed store, hash-verified

766}
767
768function indexOf(array, obj) {
769 if (array.indexOf) return array.indexOf(obj);
770
771 for (var i = 0; i < array.length; i++) {
772 if (obj === array[i]) return i;
773 }
774 return -1;
775}
776
777function arrayRemove(array, value) {
778 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