WXL
2 天以前 c80bc467a41daa6cbae4e5515a300a8ca98cfeaa
1
2
3
4
5
import { getType } from './getType.js';
/** Returns whether the payload is a Date, and that the date is valid */
export function isDate(payload) {
    return getType(payload) === 'Date' && !Number.isNaN(payload.valueOf());
}