Optionaltype: "keys"The conversion type ('keys' | 'values' | 'entries' | 'object')
Converted output as specified by the type parameter
Converts a Map to a plain JavaScript object. Each key/value pair in the Map becomes a property/value in the resulting object. Validates that all keys are valid PropertyKey types.
Type of keys (must extend PropertyKey: string | number | symbol)
Type of values in the Map
A plain object with Map entries as properties
Ensures that the Map has an entry for the given key with an array as value. If the key doesn't exist, initializes it with an empty array. Validates that the existing value (if any) is indeed an array.
The array type stored as values (extends Array
The array associated with the key (either existing or newly created)
Converts the Map into a list or specific structure based on the selected conversion type. Supports multiple output formats: entries, keys, values, or a plain object.