MCPcopy Create free account
hub / github.com/handsontable/handsontable / getAtColumn

Method getAtColumn

handsontable/src/dataMap/dataSource.ts:122–132  ·  view source on GitHub ↗

* Returns array of column values from the data source. `column` is the index of the row in the data source. * * @param {number} column Visual column index. * @returns {Array}

(column: number)

Source from the content-addressed store, hash-verified

120 * @returns {Array}
121 */
122 getAtColumn(column: number) {
123 const result: unknown[] = [];
124
125 arrayEach(this.data!, (row: unknown, rowIndex: number) => {
126 const value = this.getAtCell(rowIndex, column);
127
128 result.push(value);
129 });
130
131 return result;
132 }
133
134 /**
135 * Returns a single row of the data or a subset of its columns. If a column range or `toArray` arguments are provided, it

Callers 1

CoreFunction · 0.80

Calls 3

getAtCellMethod · 0.95
arrayEachFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected