> For the complete documentation index, see [llms.txt](https://voici.larswaechter.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://voici.larswaechter.dev/examples/arrays.md).

# Arrays

Provide arrays in your dataset.

Instead of objects you can also provide arrays in your dataset. In this case the indicies are used as column names.

```javascript
import { Table } from 'voici.js'

const data = [
  ['Homer', 'Simpson', 39],
  ['Marge', 'Simpson', 36],
  ['Bart', 'Simpson', 10],
  ['Lisa', 'Simpson', 8],
  ['Maggie', 'Simpson', 1]
];

const table = new Table(data);
table.printPlain();
```

Output:

```
  0         1          2   
===========================
  Homer     Simpson    39  
  Marge     Simpson    36  
  Bart      Simpson    10  
  Lisa      Simpson    8   
  Maggie    Simpson    1   
```
