1 2 3 4 |
str = "dog,"; str = str.slice(0, -1); |
This will give you just “dog”
via Javascript chop/slice/trim off last character in string – Stack Overflow.
1 2 3 4 |
str = "dog,"; str = str.slice(0, -1); |
This will give you just “dog”
via Javascript chop/slice/trim off last character in string – Stack Overflow.
© 2022 CODEHAVEN