Skip to content

API Reference / @gtkx/runtime / toHashTableEntries

Function: toHashTableEntries() ​

toHashTableEntries(value): [unknown, unknown][] | null

Defined in: packages/runtime/src/native-value.ts:252

Converts a Map or other iterable of pairs to hash-table entries. Rejects other values, including plain objects, which Array.from would silently turn into empty tables.

Parameters ​

value ​

unknown

The JavaScript value passed for a hash table argument.

Returns ​

[unknown, unknown][] | null