> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# getDatasetRecordsFromArray

***

# Function: getDatasetRecordsFromArray()

```ts theme={null}
function getDatasetRecordsFromArray(
  recordsArray: Record<string, unknown>[],
): DatasetRecord[];
```

Defined in: [src/utils/datasets.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/datasets.ts)

Converts an array of raw record objects into dataset records.

## Parameters

### recordsArray

`Record`\<`string`, `unknown`>\[]

The raw records to convert.

## Returns

[`DatasetRecord`](/sdk-api/typescript/reference/types/interfaces/DatasetRecord)\[]

The list of dataset records created from the raw records.
