Prelude API
    Preparing search index...

    Function dedent

    • Removes common leading whitespace from each line of a multiline string. Also removes blank lines from the beginning and end of the string.

      Parameters

      • value: string

        The multiline string to dedent

      Returns string

      A new string with common indentation removed

      dedent(`
      hello
      world
      `) // 'hello\nworld'