aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/src/lib/utils/is-date.js
blob: 69c4d0e9c6a29cba71fb6eab6c48919a30bd6dba (plain) (blame)
1
2
3
export default function isDate(input) {
    return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
}