MCPcopy
hub / github.com/google/earthengine-api / hasAndIsNotEmptyArray

Function hasAndIsNotEmptyArray

javascript/src/eeapiclient/domain_object.ts:553–563  ·  view source on GitHub ↗
(
  serializable: ISerializable,
  key: string,
  metadata: ClassMetadata,
)

Source from the content-addressed store, hash-verified

551}
552
553function hasAndIsNotEmptyArray(
554 serializable: ISerializable,
555 key: string,
556 metadata: ClassMetadata,
557): boolean {
558 if (!serializable.Serializable$has(key)) return false;
559 if (!metadata.emptyArrayIsUnset) return true;
560 const value = serializable.Serializable$get(key);
561 if (Array.isArray(value)) return value.length !== 0;
562 return true;
563}
564
565function deepEqualsObjectMap(
566 value1: ObjectMap<{}>,

Callers 1

deepEqualsFunction · 0.85

Calls 2

Serializable$hasMethod · 0.80
Serializable$getMethod · 0.80

Tested by

no test coverage detected