I have an array of 50 objects with value and ISOString date format.
const totalIncome = [
{value: '5419.59',
date: '2019-11-20T00:03:09.496Z'},
{value: '1242.41',
date: '2019-12-08T03:08:30.016Z'},
{value: '3242.41',
date: '2019-12-08T03:08:30.016Z'},
...
];
How can I return sum of all values that are from last month (all values from December)? I want to do it in vanilla JS.