Function isDate

  • It will determine whether the provided value is a Date or not.

    Parameters

    • value: unknown

    Returns value is Date

    Since

    1.0.0

    Example

    isDate(new Date());
    // => true

    Example

    isDate(2);
    // => false