Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 324 Bytes
import isInstanceOf from "../isInstanceOf";
* Check if given value is an instance of Date.
* @param value - Value to check.
* @returns True if is a Date, false if not.
export const isDate = <ValueType = unknown>(
value: ValueType | Date
): value is Date => isInstanceOf(value, Date);
export default isDate;
You can’t perform that action at this time.