1 line of code: How to convert tabs to spaces
const tabsToSpaces = (str, tabsize = 4) =&gt; str.replaceAll("\t", " ".repeat(tabsize));       ...
Tags: javascript, webdev, productivity, codequality