Answers for "split string in angular 8"

0

split in angular 8

split
Posted by: Guest on December-31-2020
0

split string in angular 8

let stringToSplit = "abc def ghi";
    console.log(stringToSplit.split(" ")[1]); // stringToSplit.split(" ") returns array and then we take the first element of the array with [0]
 Run code snippetHide results
Posted by: Guest on January-20-2022

Code answers related to "TypeScript"

Browse Popular Code Answers by Language