Circle V2 API Docs
    Preparing search index...
    • Safely read a value from a map when the key may be null/undefined. Returns undefined for a nullish key (skipping the lookup) so callers can drop manual key != null guards before every map.get(...).

      Type Parameters

      • K
      • V

      Parameters

      • map: ReadonlyMap<K, V>
      • key: K | null | undefined

      Returns V | undefined