Consider the following array :
["one-", "two-", "three-", "testing-"]
Once converted into a string, it looks like this:
"one-,two-,three-,testing-"
I need to remove the last character (hyphen) after 'testing' and create a new array from it.
The desired output is:
["one-", "two-", "three-", "testing"]
Any assistance would be greatly appreciated.