1 2 3
export default function isDate(input) { return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]'; }