Having problems with this:
var arr = new Array();
var d = new Date("2018-05-23");
arr.push(new Date("2017-10-01"))
arr.push(new Date("2018-05-23"))
arr.push(new Date("2018-12-31"))
var y = arr.includes(d);
console.log("Y: ", y);
var y = arr.indexOf(d);
console.log("Y: ", y);
/* Returns false and -1 */