MCPcopy
hub / github.com/CesiumGS/cesium / defined

Function defined

packages/engine/Source/Core/defined.js:14–16  ·  view source on GitHub ↗

* @function * * @param {*} value The object. * @returns {boolean} Returns true if the object is defined, returns false otherwise. * * @example * if (Cesium.defined(positions)) { * doSomething(); * } else { * doSomethingElse(); * }

(value)

Source from the content-addressed store, hash-verified

12 * }
13 */
14function defined(value) {
15 return value !== undefined && value !== null;
16}
17export default defined;

Callers 15

expectCubeMapFacesFunction · 0.90
createPrimitiveFunction · 0.90
SceneSpec.jsFile · 0.90
getFrustumCommandsLengthFunction · 0.90
verifyLabelsRenderFunction · 0.90
verifyPrimitivesRenderFunction · 0.90
installFakeRequestFunction · 0.90
renderAndCallFunction · 0.90
ShadowMapSpec.jsFile · 0.90
SkyBoxSpec.jsFile · 0.90
TileFunction · 0.90

Calls

no outgoing calls

Tested by 1

describeFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…