Converts a Map object with string keys into an object with key-value pairs
that can be stringified using JSON.stringify. Returns an empty object if the
keys are not of type string. Returns the original value if it is not a Map.
Parameters
_: unknown
Unused.
value: unknown
The value from the object to be stringified.
Returns unknown
The converted object or the original value if it is not a Map
or if the Map's keys are not of type string.
Converts a Map object with string keys into an object with key-value pairs that can be stringified using JSON.stringify. Returns an empty object if the keys are not of type string. Returns the original value if it is not a Map.