Extracts a readable message string from an unknown value.
Converts Error objects to their message property, formats numbers with
US locale conventions (en-US), or converts other values to string representation.
Parameters
value: unknown
Unknown value to extract message from
Returns string
Error message, formatted number, or string representation of the value
Extracts a readable message string from an unknown value.
Converts
Errorobjects to their message property, formats numbers with US locale conventions (en-US), or converts other values to string representation.