Extracts the indentation (spaces and tabs) from the beginning of a string.
The string to extract indentation from
The indentation string (spaces and tabs) at the beginning of the input
firstIndent(' hello') // ' 'firstIndent('\t\thello') // '\t\t'firstIndent('hello') // '' Copy
firstIndent(' hello') // ' 'firstIndent('\t\thello') // '\t\t'firstIndent('hello') // ''
Extracts the indentation (spaces and tabs) from the beginning of a string.