remove character at end of a string javascript if matching lodash code example
Example: remove last character from string js
var str = "Your string"
str = str.slice(0, -1);
console.log(str)
//returns "Your strin"
var str = "Your string"
str = str.slice(0, -1);
console.log(str)
//returns "Your strin"