New Project
All checks were successful
BeijingMediaOfficialWebsite-ZhaoJian/BeijingMediaOfficialWebsite-ZhaoJian/pipeline/head This commit looks good
All checks were successful
BeijingMediaOfficialWebsite-ZhaoJian/BeijingMediaOfficialWebsite-ZhaoJian/pipeline/head This commit looks good
This commit is contained in:
5
web/node_modules/is-what/dist/isDate.js
generated
vendored
Normal file
5
web/node_modules/is-what/dist/isDate.js
generated
vendored
Normal file
@@ -0,0 +1,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());
|
||||
}
|
||||
Reference in New Issue
Block a user