Skip to content

arrayToSheet

On this page

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

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

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

Parameters

NameTypeRequiredDescription
dataany[][]YesThe array-of-arrays containing raw cell values
optsAOA2SheetOptsNoOptional settings (same as addArrayToSheet)

Returns

WorkSheet

A new worksheet populated with the given data