Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #string #angular
ADD COMMENT
Topic
Name
8+8 =