Formats a given input string with numeric placeholders.

// returns "Hello World"
formatString("{0} {1}", ["Hello", "World"]);
  • Parameters

    • string: string

      The input string with placeholders.

    • ...formatArguments: string[]

      An array of strings to place into the placeholders.

    Returns string

    The formatted string.