function detect
detect(): "browser" | "node" | "deno" | nullA function that detects which runtime the code is running on.
Return Type
"browser" | "node" | "deno" | nullThe name of the runtime being run on, or null if the runtime could not be detected.