Faithful implementation of string-dedent

Proposal: GitHub - tc39/proposal-string-dedent: TC39 Proposal to remove common leading indentation from multiline template strings

The string-dedent spec is the longest AO I've ever seen for a single API. I wrote a faithful TS implementation which is a 1-1 translation from the spec text:

Hope that could be useful for testing


Sounds like a great PR to once it’s stage 4 :-D

1 Like