@webdeveric/utils
    Preparing search index...

    Function dedent

    • This is a tagged template function that removes common leading indentation from each line, re-indents any interpolated multi-line values to match, and trims leading/trailing whitespace from the result.

      Parameters

      • raw: readonly string[]
      • ...values: unknown[]

      Returns string

      const value = 'World';

      dedent`
      Hello, ${value}!
      `; // 'Hello, World!'