title: Formatting a number to have commas at every 1000 factor
body: <p>I need to format a number like <code>1234567</code> as <code>1,234,567</code> but don't know how to do this. I tried using currency pipe of TypeScript but that gives USD or $ in front of the number. I want to remove that and format the number in this way <code>1,234,567</code>. How can I do this?</p>