@haraldki/jsonaccess
    Preparing search index...

    Function jsonGetUnion

    • Picks the field from data with jsonGet and then applies jsonAsUnion.

      Type Parameters

      • PRIMITIVE extends string | number | boolean

      Parameters

      • data: unknown
      • field: string | number
      • values: readonly PRIMITIVE[]

      Returns Maybe<PRIMITIVE>