Prelude API
    Preparing search index...

    Function firstIndent

    • Extracts the indentation (spaces and tabs) from the beginning of a string.

      Parameters

      • value: string

        The string to extract indentation from

      Returns string

      The indentation string (spaces and tabs) at the beginning of the input

      firstIndent('  hello') // '  '
      firstIndent('\t\thello') // '\t\t'
      firstIndent('hello') // ''