Replace all commas in a string using angular

Today, I was trying to replace commas in a string using TypeScript. I know the replace method will help us to do it. In C#, you usually use a replace method like below which will replace all commas in a string. var str = “A,B,C,D”; Console.WriteLine(str.ToString().Replace(“,”,””)); Output: ABCD But, when I tried a replace method using TypeScript then I have […]

Read More