const expandTabs = (str: string, count: number) => str.replace(/\t/g, ' '.repeat(count));
      
      Typescript language logo

      Expand tabs

      0

      0

      avatar
      Giovanny Gongora
      Codiga's TypeScript Recipes

      Convert tabs to spaces, where each tab corresponds to count spaces.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.