I need help using the .map function to transform this array so that only the first 5 characters are displayed, like "01:00", "02:00"?
This is the array:
["01:00:00 AM", "02:00:00 AM", "03:00:00 AM", "04:00:00 AM", "05:00:00 AM", "06:00:00 AM", "07:00:00 AM", "08:00:00 AM", "09:00:00 AM", "10:00:00 AM", "11:00:00 AM", "12:00:00 PM", "13:00:00 PM", "14:00:00 PM", "15:00:00 PM", "16:00:00 PM", "17:00:00 PM", "18:00:00 PM", "19:00:00 PM", "20:00:00 PM", "21:00:00 PM", "22:00:00 PM", "23:00:00 PM", "00:00:00 AM"]