I have a multi-line template literal. I want to splice it based on line number and character index in the line. For that, I need the number of characters in a given line. How can I get this number?
As for what I have tried, well, I pretty much only put random numbers into slice()
to see how much it slices.
Thanks.