Function StringRaw

  • String.raw is usually used as a tag function of a Tagged Template String. When called as such, the first argument will be a well formed template call site object and the rest parameter will contain the substitution values. It can also be called directly, for example, to interleave strings and values from your own tag function, and in this case the only thing it needs from the first argument is the raw property.

    Parameters

    • template: {
          raw: readonly string[] | ArrayLike<string>;
      }

      A well-formed template string call site representation.

      • raw: readonly string[] | ArrayLike<string>
    • Rest ...substitutions: any[]

      A set of substitution values.

    Returns string

Generated using TypeDoc