I need to get the last element of the splitted array with multiple seperators. if there's no array it should return the string
the seperators are "commas" and "space"
if the string is "how,are you doing, today?" it should return "today?"
if the input were "hello" the output should be "hello"
how can i do this in javascript