Circle V2 API Docs
    Preparing search index...
    • Coerce a possibly-missing collection to an array so callers can drop ?? [] and Array.isArray(...) guards before iterating.

      The runtime Array.isArray check matters for loosely-typed external payloads (EMR responses, generated API types) where a field is declared as an array but arrives as null, an object, or a scalar. Arrays are returned as-is, not copied.

      Type Parameters

      • T

      Parameters

      • value: T[] | null | undefined

      Returns T[]