MCPcopy Create free account
hub / github.com/browserify/http-browserify / indexOf

Function indexOf

lib/request.js:197–203  ·  view source on GitHub ↗
(xs, x)

Source from the content-addressed store, hash-verified

195};
196
197var indexOf = function (xs, x) {
198 if (xs.indexOf) return xs.indexOf(x);
199 for (var i = 0; i < xs.length; i++) {
200 if (xs[i] === x) return i;
201 }
202 return -1;
203};
204
205var isXHR2Compatible = function (obj) {
206 if (typeof Blob !== 'undefined' && obj instanceof Blob) return true;

Callers 1

request.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected