• Format string using the specified context values supporting simple ES6 string interpolation at run-time.

    • ES6 interpolated string Bar ${foo} with context values {foo: 'bar'} results in Bar bar
    • Using named context valyes Bar ${foo} with context values {foo: 'bar'} results in Bar bar

    Parameters

    • stringFormat: string

      Format string

    • Optional contextValues: any

      context values supplied

    Returns string