node-ts-dedent icon indicating copy to clipboard operation
node-ts-dedent copied to clipboard

Could you please explain exactly what it does in the docs?

Open toddobryan opened this issue 9 months ago • 0 comments

Based on the examples, I think it removes a starting bare newline, and then removes the number of whitespace characters on the first line that starts with whitespace characters. Or does it remove the number of whitespace characters on the line with the fewest leading whitespace characters?

A quick summary of what the algorithm is would make it easier than having to look in the code or try stuff.

toddobryan avatar Oct 10 '23 19:10 toddobryan