main.cesium.defaultValue.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:JsModule("cesium")
package cesium
/**
* Returns the first parameter if not undefined, otherwise the second parameter.
* Useful for setting a default value for a parameter.
* ```
* param = defaultValue(param, 'default');
* ```
* @return Returns the first parameter if not undefined, otherwise the second parameter.
* @see Online Documentation
*/
external fun defaultValue(
a: Any,
b: Any,
): Any