# arrayToSheet

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

Create a new worksheet from an array-of-arrays.

This is a convenience wrapper around `addArrayToSheet` that always creates
a fresh worksheet.

```ts
arrayToSheet(data: any[][], opts?: AOA2SheetOpts): WorkSheet
```

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` data ` | ` any[][] ` | Yes | The array-of-arrays containing raw cell values |
| ` opts ` | [` AOA2SheetOpts `](</xlsx-format/api-reference/interfaces/aoa2sheetopts/>) | No | Optional settings (same as `addArrayToSheet`) |

## Returns

[` WorkSheet `](</xlsx-format/api-reference/interfaces/worksheet/>)

A new worksheet populated with the given data
