My current project involves utilizing an API to monitor soccer scores.
The issue I am encountering is that the response object does not provide a specific key for each team's score. Instead, the value is represented in a string format like this:
"ft_score": "1 - 0",
I am looking for a solution on how to destructure this score into separate variables for each team. Can anyone advise on how this can be achieved?