function defined(value) {
  return value !== undefined && value !== null;
}
@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();
}