/**
 * Type guard to check if a value is a valid Date object.
 *
 * @param value The value to check.
 * @returns `true` if the value is a valid Date object, otherwise `false`.
 */
export function isDate(value) {
    return value instanceof Date && !isNaN(value.getTime());
}
/**
 * Type guard to check if a value is a valid Date object.
 *
 * @param record - The record to retrieve the value from.
 * @param key - The key of the value to retrieve.
 * @returns The value associated with the key, or undefined if the key doesn't exist.
 */
export function tryGet(record, key) {
    if (key in record) {
        return record[key];
    }
    return undefined;
}
//# sourceMappingURL=Extensions.js.map