I have an array (Dates) of 600 items like this:
[{Case: 1, Date: 01012019},{Case: 2, Date: 01022019},{Case: 3, Date: 01032019}
What is the best approach to get the value from the key "Date" based on the key "Case"?
I know I can do a simple loop ($.each())on the array and break out of the loop once i find the key I'm looking for. Another option - as far as I've read at least - is to use the $.map() function.
I will need to lookup the key for 50-100 items on page load, so looping the array (Dates) seems like a lot of work to get me there. Is there a more efficient way? Og talking javescript/Jquery here :)
Casenumbers are just placeholders right, they're not actually in predictable order in your real code?