Skip to content

toRecord

toRecord<V>(m): Readonly<Record<string, V>>

Defined in: Utils/Dict.ts:448

Converts a ReadonlyMap<string, V> to a plain object. Only meaningful when keys are strings.

V

ReadonlyMap<string, V>

Readonly<Record<string, V>>

Dict.toRecord(Dict.fromEntries([["a", 1], ["b", 2]])); // { a: 1, b: 2 }