Documentation
    Preparing search index...

    Function format

    • Replaces the format item in a specified string with the string representation of a corresponding object in a specified array.

      Parameters

      • expression: string

        A composite format string.

      • ...args: unknown[]

        An object array that contains zero or more objects to format.

      Returns string

      A copy of format in which the format items have been replaced by the string representation of the corresponding objects in args.

      Re-implement by parsing into expression and throw error for invalid cases.