expandTabs
Convert tabs to spaces, where each tab corresponds to count
spaces.
- Use
String.prototype.replace()
with a regular expression andString.prototype.repeat()
to replace each tab character withcount
spaces.
Convert tabs to spaces, where each tab corresponds to count
spaces.
String.prototype.replace()
with a regular expression and String.prototype.repeat()
to replace each tab character with count
spaces.