Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

replace string in typescript

var re = /apples/gi; 
var str = "Apples are round, and apples are juicy.";
var newstr = str.replace(re, "oranges"); 
console.log(newstr)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #replace #string #typescript
ADD COMMENT
Topic
Name
4+1 =