--- id: table_getColumn title: table_getColumn --- ```ts function table_getColumn(table, columnId): | Column | undefined; ``` Defined in: [core/columns/coreColumnsFeature.utils.ts:266](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/columns/coreColumnsFeature.utils.ts#L266) Looks up a column by id from the flat column map. The lookup can return group columns or leaf columns. In development, a missing id logs a warning to help catch stale column references. ## Type Parameters ### TFeatures `TFeatures` *extends* [`TableFeatures`](../../index/interfaces/TableFeatures.md) ### TData `TData` *extends* [`RowData`](../../index/type-aliases/RowData.md) ## Parameters ### table [`Table_Internal`](../../index/interfaces/Table_Internal.md)\<`TFeatures`, `TData`\> ### columnId `string` ## Returns \| [`Column`](../../index/type-aliases/Column.md)\<`TFeatures`, `TData`, `unknown`\> \| `undefined` ## Example ```ts const column = table_getColumn(table, 'firstName') ```