4
Answers

How to replace empty space with underscore in typescript

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)