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

Function _indexOf

examples/browser/nodeunit.js:565–575  ·  view source on GitHub ↗
(arr, item)

Source from the content-addressed store, hash-verified

563 };
564
565 var _indexOf = function (arr, item) {
566 if (arr.indexOf) {
567 return arr.indexOf(item);
568 }
569 for (var i = 0; i < arr.length; i += 1) {
570 if (arr[i] === item) {
571 return i;
572 }
573 }
574 return -1;
575 };
576
577 //// exported async module functions ////
578

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…