MCPcopy Index your code
hub / github.com/caolan/nodeunit / _indexOf

Function _indexOf

deps/async.js:67–77  ·  view source on GitHub ↗
(arr, item)

Source from the content-addressed store, hash-verified

65 };
66
67 var _indexOf = function (arr, item) {
68 if (arr.indexOf) {
69 return arr.indexOf(item);
70 }
71 for (var i = 0; i < arr.length; i += 1) {
72 if (arr[i] === item) {
73 return i;
74 }
75 }
76 return -1;
77 };
78
79 //// exported async module functions ////
80

Callers 1

readyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…