@scaleway/sdk-client
Version:
Scaleway SDK Client
5 lines (4 loc) • 428 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const isResponse = (obj) => obj !== null && obj !== void 0 && typeof obj === "object" && "status" in obj && typeof obj.status === "number" && "statusText" in obj && typeof obj.statusText === "string" && "headers" in obj && typeof obj.headers === "object" && "body" in obj && typeof obj.body !== "undefined";
exports.isResponse = isResponse;