There is 1 object in array, which is:
0: {From: Wed Nov 08 2017 07:50:00}
and with this function using lodash I want to find if there is an object equel to date i am looking for, rounded to 10 minutes:
let find = _.findIndex(myArray, e => e.From == new Date(Math.floor(newDate.getTime() / 600000) * 600000));
The newDate date object has a value of Wed Nov 08 2017 07:55:00 and the expected outcome is index 0, instead it returns -1 which means nothing was found.