Javascript – converting opening hours string to time in js
i have a list of opening hours that more or less are in this kind of format, one value for one entire day: [ "", "Closed", "8:30 AM–7:30 PM", "9 AM–12:30 PM, 2:30–7:30 PM", "2:30–7:30 PM", "3–7 PM", "10 AM–7 PM", "8 AM–1 PM, 2:30–7 PM", "8 AM–1 PM, 2–7 PM", "8 AM–8:30 PM", "9 AM–12 PM, 2:30–7 PM", "Open…