jbilcke's picture
working to improve the clap format
f42b4a1
raw
history blame
271 Bytes
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
const isWebWorker =
typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope";
export const isBackend = !isBrowser && !isWebWorker;