Library API
    Preparing search index...

    Function sprintf

    • Formats a string using sprintf-style %s and %j parameter replacements. Also supports positional ${digit} markers.

      Parameters

      • fmt: string

        The format string (or an object to stringify)

      • ...msg: any[]

        The arguments to inject into the format string

      Returns string

      The formatted string

      sprintf('Hello %s', 'World'); // 'Hello World'
      
    • Formats a string using sprintf-style %s and %j parameter replacements. Also supports positional ${digit} markers.

      Parameters

      • ...msg: any[]

        The arguments to inject into the format string

      Returns string

      The formatted string

      sprintf('Hello %s', 'World'); // 'Hello World'