wrap-options
Exemple Usage
var Options = ; { var wrappedOptions = options; thisname = wrappedOptions; thisisVisible = wrappedOptions;} var result = name: 'me' ; console;// { name: 'me', isVisible: false }
Base API
.get(name, defaultValue)
Return the option value if present, otherwise return the defaultValue.
.require(name)
Return the option value if present, otherwise throw an error.
.has(name)
Check if the option was passes. Return a boolean.
Shorthand functions
.map(name, iterator, context)
Same as
options
.mapConstructor(name, constructor)
Same as:
options
.getOptions(name, defaultValue)
Same as
options
.requireOptions(name)
Same as
options
.mapOptions(name)
Same as
options