# Function firstDefined

- firstDefined(data: Record<string, unknown>, ...keys: string[]): unknown

  Returns the first non-undefined value from a record, looked up by key list.

  #### Parameters

  - data: Record<string, unknown>

    Record to search

  - ...keys: string[]

    Field names to try in order

  #### Returns unknown

  First non-undefined value, or `undefined` if none found

  - Defined in clients/ep/jsonLdHelpers.ts:33