# defaultValue

engine/Source/Core/defaultValue.js 14
Returns the first parameter if not undefined, otherwise the second parameter. Useful for setting a default value for a parameter.

##### Example:

    param = Cesium.defaultValue(param, 'default');

### Members

#### static Cesium.defaultValue.EMPTY_OBJECT : object
engine/Source/Core/defaultValue.js 27

A frozen empty object that can be used as the default value for options passed as an object literal.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.