4
Answers

How to replace empty space with underscore in typescript

siva nathan

siva nathan

4y
1.1k
1
Hi All,
 
I have a string called API Definition, need to replace an empty space between API and Definition with underscore
Ex;
Original String:-  API Definition
Expected Result:-  API_Definition
 
can anyone suggest for this 
Answers (4)