Criada a API do site
This commit is contained in:
5
node_modules/is-what/dist/isDate.js
generated
vendored
Normal file
5
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