Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

isWorkerRuntime

Returns true if this code is currently running in a worker.

const isWorkerRuntime: () => boolean;