@tsdotnet/text-utility - v1.2.4
    Preparing search index...

    Function supplant

    • This takes a string and replaces '{string}' with the respected parameter. Also allows for passing an array in order to use '{n}' notation. Not limited to an array's indexes. For example, {length} is allowed. Based upon Crockford's supplant function.

      Parameters

      • source: string
      • params: any[] | { [key: string]: any }

      Returns string