Returns the first parameter if not undefined, otherwise the second parameter.
Useful for setting a default value for a parameter.
Parameters:
Name | Type | Description |
---|---|---|
a |
* | |
b |
* |
- Source:
Returns:
Returns the first parameter if not undefined, otherwise the second parameter.
- Type
- *
Example
param = Cesium.defaultValue(param, 'default');
Members
(static) EMPTY_OBJECT
A frozen empty object that can be used as the default value for options passed as
an object literal.
- Source: