@metreeca/core - v0.9.7
    Preparing search index...

    Function message

    • 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.

      Parameters

      • value: unknown

        Unknown value to extract message from

      Returns string

      Error message, formatted number, or string representation of the value