Skip to content

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

ParameterTypeDescription
tanyTable 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

ParameterTypeDescription
tanyTable 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

ParameterTypeDescription
tanyTable 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

ParameterTypeDescription
aunknownFirst value to compare
bunknownSecond value to compare

Returns

boolean

True if both values are structurally equal