Extracts a readable message string from an unknown value.
Converts Error objects to their message property, formats numbers with locale-specific formatting, or converts other values to string representation.
Error
Unknown value to extract message from
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 locale-specific formatting, or converts other values to string representation.