method Deno.Env.has
Jump to headingEnv.has(key: string): boolean
Check whether an environment variable is present or not.
Deno.env.set("SOME_VAR", "Value");
Deno.env.has("SOME_VAR"); // outputs true
Requires allow-env
permission.
Parameters Jump to heading
Jump to headingkey: string
Return Type Jump to heading
boolean