# sheetToArray

Source: /xlsx-format/api-reference/functions/sheettoarray

Convert a worksheet to an array-of-arrays.

This is a convenience wrapper around `sheetToJson(sheet, { header: 1 })`
that mirrors `arrayToSheet` for callers that prefer explicit conversion
pairs.

```ts
sheetToArray<T = unknown>(sheet: WorkSheet, opts?: Omit<Sheet2JSONOpts, "header">): T[][]
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` sheet ` | [` WorkSheet `](</xlsx-format/api-reference/interfaces/worksheet/>) | Yes | The worksheet to convert |
| ` opts ` | ` Omit< `[` Sheet2JSONOpts `](</xlsx-format/api-reference/interfaces/sheet2jsonopts/>)` , "header"> ` | No | Optional conversion settings, except `header` which is fixed to array output |

## Returns

` T[][] `

A two-dimensional array of worksheet values
