UNPKG

unstructured-client

Version:

<h3 align="center"> <img src="https://raw.githubusercontent.com/Unstructured-IO/unstructured/main/img/unstructured_logo.png" height="200" > </h3>

19 lines 684 B
"use strict"; /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isReadableStream = void 0; function isReadableStream(val) { if (typeof val !== "object" || val === null) { return false; } // Check for the presence of methods specific to ReadableStream const stream = val; // ReadableStream has methods like getReader, cancel, and tee return (typeof stream.getReader === "function" && typeof stream.cancel === "function" && typeof stream.tee === "function"); } exports.isReadableStream = isReadableStream; //# sourceMappingURL=streams.js.map