Json – For loop to iterate only the first element of the array
I have the below JSON, which is linked to a google calendar. The function setAllEvenDates(arrEvents) loops through all the array but instead of giving the first item of the array give me the last. My intention is to get the…