@hebcal/hdate
    Preparing search index...

    Function isDate

    • Returns true if the object is a Javascript Date.

      Note that this only tests the type: an invalid date such as new Date('foo') is still a Date and returns true.

      Parameters

      • obj: unknown

      Returns boolean

      isDate(new Date()); // true
      isDate('2024-01-01'); // false
      isDate(1700000000000); // false