I have an array that contains three different strings for example:
[ 'obtain wealth1', 'obtain dreams3', 'obtain discretion3' ]
The array is created from a function I've written.
What I want to do next is compare the last characters of the strings to one another (the numbers) to see if I produce a match.
How would I go about doing this?
Thanks for the help.