MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / indexOf

Function indexOf

Three.js/js/leap.js:2258–2264  ·  view source on GitHub ↗
(xs, x)

Source from the content-addressed store, hash-verified

2256 }
2257;
2258function indexOf (xs, x) {
2259 if (xs.indexOf) return xs.indexOf(x);
2260 for (var i = 0; i < xs.length; i++) {
2261 if (x === xs[i]) return i;
2262 }
2263 return -1;
2264}
2265
2266// By default EventEmitters will print a warning if more than
2267// 10 listeners are added to it. This is a useful default which

Callers 1

leap.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected