utils/table
Functions
isTableEmpty()
function isTableEmpty(t: any): boolean;Defined in: utils/table.ts:6
Returns true if the table has no keys/entries (checked in O(1) via next).
Parameters
| Parameter | Type | Description |
|---|---|---|
t | any | Table to check |
Returns
boolean
hasTableEntries()
function hasTableEntries(t: any): boolean;Defined in: utils/table.ts:17
Returns true if the table contains at least one key/entry (checked in O(1) via next).
Parameters
| Parameter | Type | Description |
|---|---|---|
t | any | Table to check |
Returns
boolean
tableSize()
function tableSize(t: any): number;Defined in: utils/table.ts:28
Counts the total number of entries in a hash map / dictionary table using pairs.
Parameters
| Parameter | Type | Description |
|---|---|---|
t | any | Table to count |
Returns
number
areObjectsEqual()
function areObjectsEqual(a: unknown, b: unknown): boolean;Defined in: utils/table.ts:45
Recursively checks deep equality between two values of any type. Supports primitives, nested dictionaries, arrays, and undefined values.
Parameters
| Parameter | Type | Description |
|---|---|---|
a | unknown | First value to compare |
b | unknown | Second value to compare |
Returns
boolean
True if both values are structurally equal