UNPKG

@progress/kendo-date-math

Version:

Kendo UI typescript package exporting functions for Date manipulations

16 lines (15 loc) 566 B
/** * A function that compares two dates. The comparison also includes the time portion. * * @param candidate - The candidate date. * @param expected - The expected date. * @returns - A Boolean value indicating whether the values are equal. * * @example * ```ts-no-run * isEqual(new Date(2016, 0, 1), new Date(2016, 0, 1)); // true * isEqual(new Date(2016, 0, 1), new Date(2016, 0, 2)); // false * isEqual(new Date(2016, 0, 1, 10), new Date(2016, 0, 1, 20)); // false * ``` */ export declare const isEqual: (candidate: Date, expected: Date) => boolean;