Description

Set the top-level binding of the given name to the given value.

Set will automatically apply ToValue to the given value in order to convert it to a JavaScript value (type Value).

If there is an error (like the binding is read-only, or the ToValue conversion fails), then an error is returned.

If the top-level binding does not exist, it will be created.

Set is referenced in 59 repositories

github.com/robertkrimen/otto github.com/Comcast/rulio github.com/mattbasta/Legend-of-Adventure

...