MCPcopy Index your code
hub / github.com/microsoft/SandDance / isReadableDOMStream

Function isReadableDOMStream

docs/app/js/sanddance-app.js:55309–55311  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

55307 return isObject(x) && isFunction(x.abort) && isFunction(x.getWriter);
55308};
55309var isReadableDOMStream = function isReadableDOMStream(x) {
55310 return typeof ReadableStream !== "undefined" && x instanceof ReadableStream || isObject(x) && isFunction(x.tee) && isFunction(x.cancel) && isFunction(x.getReader);
55311};
55312var isBuffer = function isBuffer(x) {
55313 return x && (0, _typeofDefault.default)(x) === "object" && x.isBuffer;
55314};

Callers 1

isReadableStreamFunction · 0.70

Calls 2

isObjectFunction · 0.70
isFunctionFunction · 0.70

Tested by

no test coverage detected