Table.constructor

The Table constructor.

Syntax

new Table(headers, rows)

Parameters

Return value

A new Table object.

Example

new Table(["Item", "Count"], [
  ["Bicycle", 5],
  ["Scooter", 2]
])
ItemCount
Bicycle5
Scooter2

See also