Skip to content

KBE3D / KBCore / Cesium / defined

函数: defined()

defined<Type>(value: Type): value is NonNullable<Type>

类型参数

Type

Type

参数

value

Type

The object.

返回

value is NonNullable<Type>

Returns true if the object is defined, returns false otherwise.

示例

ts
if (Cesium.defined(positions)) {
     doSomething();
} else {
     doSomethingElse();
}

KBE3D @3.0.0 Copyright © 2024-present KBE3D