js string replace last character code example
Example 1: js omit last string
"somestring0".slice(0, -1)
// "somestring"
Example 2: javascript replace last character
var str1 = "Notion,Data,Identity,".replace(/.$/,".")
"somestring0".slice(0, -1)
// "somestring"
var str1 = "Notion,Data,Identity,".replace(/.$/,".")