@alanscodelog/utils
    Preparing search index...

    Function crop

    • "Crops" template strings to remove the excess whitespace needed to make the code more readable.

      At it's core it's just a template tag function that wraps around stripIndent(trimLines(str)) so it uses stripIndent's defaults (i.e. it only strips tab indents).

      Parameters

      • template: TemplateStringsArray
      • ...substitutions: any[]

      Returns string