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

Function isXHR2Compatible

lib/request.js:205–209  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

203};
204
205var isXHR2Compatible = function (obj) {
206 if (typeof Blob !== 'undefined' && obj instanceof Blob) return true;
207 if (typeof ArrayBuffer !== 'undefined' && obj instanceof ArrayBuffer) return true;
208 if (typeof FormData !== 'undefined' && obj instanceof FormData) return true;
209};

Callers 1

request.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected