setKeyValue
Overwrite an existing global environment variable.
globals.setKeyValue(key, value)
globals.define('foo', 'bar');
globals.setKeyValue('foo', 'baz');
globals.getKeyValue('foo'); //-> 'baz'
Sets the new value at key
. Will override previously set values, but preserves the default (see deleteKeyValue
).
Setting a key which was not previously defined will call define
with the key and value.
Parameters
- key
{String}
:The key value to access.
- value
{*}
:The new value.