Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

delete the last string from file in typescript

if(x.lastIndexOf("
")>0) {
    return x.substring(0, x.lastIndexOf("
"));
} else {
    return x;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #string #file #typescript
ADD COMMENT
Topic
Name
4+9 =