MCPcopy Create free account
hub / github.com/microsoft/SandDance / isBuffer

Function isBuffer

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

Source from the content-addressed store, hash-verified

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};
55315var isWritableNodeStream = function isWritableNodeStream(x) {
55316 return isObject(x) && isFunction(x.end) && isFunction(x.write) && isBoolean(x.writable);
55317};

Callers 1

jsonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected