Functions
mapToObject
- mapToObject<T>(m: Map<string, T> | undefined): {}
-
Type parameters
Parameters
-
m: Map<string, T> | undefined
Returns {}
mapToOptionalObject
- mapToOptionalObject<T>(m: Map<string, T> | undefined): {} | undefined
-
Type parameters
Parameters
-
m: Map<string, T> | undefined
Returns {} | undefined
Converts an ES6 Map to an object, returning an object with no properties if the map was empty.