API Reference / @gtkx/runtime / toHashTableEntries
Function: toHashTableEntries()
toHashTableEntries(
value): [unknown,unknown][] |null
Defined in: packages/runtime/dist/native-value.d.ts:23
Normalises the JavaScript form of a hash table argument into its entry list. A Map is the expected form and any other iterable of pairs is accepted; anything else is rejected, a plain object above all, which Array.from would quietly flatten into an empty table.
Parameters
value
unknown
The JavaScript value passed for a hash table argument.
Returns
[unknown, unknown][] | null