Answers for "delete the last string from file in typescript"

0

delete the last string from file in typescript

if(x.lastIndexOf("\n")>0) {
    return x.substring(0, x.lastIndexOf("\n"));
} else {
    return x;
}
Posted by: Guest on December-10-2020

Code answers related to "delete the last string from file in typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language