Apologies if my subject line is confusing...simply, what I'm trying to work out is say I have the below arrays:
Array 1
{Hour: "04", Today: 2049},
{Hour: "05", Today: 38},
{Hour: "06", Today: 166}
Array 2
{Hour: "04", Yesterday: 2049},
{Hour: "05", Yesterday: 38},
{Hour: "06", Yesterday: 166}
What would I do to merge these into:
{Hour: "04", Today: 2049, Yesterday: 2049},
{Hour: "05", Today: 38, Yesterday: 38},
{Hour: "06", Today: 166, Yesterday: 166}
I assume I need to reduce it somehow, but I can't quite work it out....
Any help much appreciated...