extractKeys
DataTable
stable
Recursively collects all header key values from a nested DataTable header tree into a Set. Traverses children arrays automatically.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- headersrequiredArray<IDataTableHeader>
- The flat or nested array of DataTable header definitions to traverse.
- keysSet<string>new Set<string>()
- An existing Set to accumulate keys into. A new empty Set is created when omitted.
API
Return value
The value returned by this util.
- The (possibly pre-populated) Set with all header key values appended.
Usage
Examples
Ready-to-paste usage snippets.
Collect column keys from nested headers