| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > MapExtensions > toObject
Converts a string-keyed map to an object.
Signature:
static toObject<TValue>(map: Map<string, TValue>): {
[key: string]: TValue;
};|
Parameter |
Type |
Description |
|---|---|---|
|
map |
Map<string, TValue> |
The map that the object properties will be sourced from |
Returns:
{ [key: string]: TValue; }
This function has the same effect as Object.fromEntries(map.entries()) in supported versions of Node (<></>><></>= 12.0.0).