This function returns an array of the indentation level of each line of a string.
I made this as part of a yaml parser I'm trying to do =D
you use it like this:
getIndent("\t\t\ttext\n\tmore text\nnot indented")
and it returns this:
I tried to come up with my own solution and ended with something 2 bytes smaller. This abuses