• Determines whether the provided object is an instance of Date.

    This function checks if the provided object is of type "object" and if it is an instance of the Date class. It is used to validate if the object can be used as a date.

    Parameters

    • object: unknown

      The object to be checked.

    Returns boolean

    true if the object is a Date instance, otherwise false.

    Example

    // Returns: true
    ix.api.is.isDate(new Date());

    // Returns: false
    ix.api.is.isDate("2022-01-01");