Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to cut a string uptil specific character javascript

var str = "Abc: Lorem ipsum sit amet";
str = str.split(":").pop();
 // OR
str = str.split(":").shift();
 
PREVIOUS NEXT
Tagged: #cut #string #uptil #specific #character #javascript
ADD COMMENT
Topic
Name
9+4 =