Having trouble figuring out how to get the correct numbers to set some variables when i read API item
Here is item in API - h2hwlt="15‑12‑3"
I need to get the numbers 15 , 12 and 3 to set as variables
var wins = parseInt(response.leagueStandings.franchise[i].h2hwlt); // i want only # '15' here
var losses = parseInt(response.leagueStandings.franchise[i].h2hwlt); // i want only # '12' here
var ties = parseInt(response.leagueStandings.franchise[i].h2hwlt); // i want only # '3' here