i need to find the repeated values in an array like this:
let arr = [
{date:"20/7/2020", state:"walking",duration:"20"},
{date:"21/7/2020", state:"driving",duration:"13"},
{date:"20/7/2020", state:"walking",duration:"39"},
{date:"21/7/2020", state:"driving",duration:"76"},
]
I need to take as reference the equal date and state between all the objects that meet that equality, then sum their durations and push them in an array, but I can't find the way