I have an array of date object and want to check if supplied date exists in the array by array.indexOf method but it's always returning -1 (not found). Although date exists in the array.
availableDates[62] and Date have the same value when I print in the console but the condition is returning false.