Table.prototype.column

Returns an array of the specified column from the table.

Syntax

column(nameOrIndex)

Parameters

Example

new Table(["Item", "Count"], [
  ["Bicycle", 5],
  ["Scooter", 2]
]).column("Item")
["Bicycle", "Scooter"]