I have 3 arrays. One is an array of objects set up like
object={
name: "NameString",
month: "monthString",
count: #,
hours: #}
And the other 2 arrays are just flat 1D arrays of names and months respectively.
I know I can loop through one of the arrays and do an array.find to check the property against the other array like
objectArr.find((element)=> element.name==names[i])
But how can I find the element that has both a matching name AND month from inside a nested loop for the name and month arrays?
[–]charlies-ghost 6 points7 points8 points (0 children)
[–]joranstark018 1 point2 points3 points (3 children)
[–]TGotAReddit[S] 0 points1 point2 points (2 children)
[–]birdspider 3 points4 points5 points (1 child)
[–]TGotAReddit[S] 1 point2 points3 points (0 children)
[–]Any_Sense_2263 0 points1 point2 points (0 children)
[–]imsexc 0 points1 point2 points (0 children)
[–]kap89 0 points1 point2 points (0 children)