mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
feat(runtime/os): add Deno.env.has()
(#17315)
This commit is contained in:
parent
fa175d8cda
commit
e6c49d14b1
3 changed files with 23 additions and 0 deletions
|
@ -96,6 +96,9 @@
|
|||
return ops.op_env();
|
||||
},
|
||||
set: setEnv,
|
||||
has(key) {
|
||||
return getEnv(key) !== undefined;
|
||||
},
|
||||
delete: deleteEnv,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue