Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript remove last charter stings

const s = "your_string";
const withoutLastChunk = s.slice(0, s.lastIndexOf("_"));
console.log(withoutLastChunk);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #remove #charter #stings
ADD COMMENT
Topic
Name
3+3 =