mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
feat: image component
This commit is contained in:
8
src-next/utils/validate/date.ts
Normal file
8
src-next/utils/validate/date.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { isNaN } from './number';
|
||||
|
||||
export function isDate(val: Date): val is Date {
|
||||
return (
|
||||
Object.prototype.toString.call(val) === '[object Date]' &&
|
||||
!isNaN(val.getTime())
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user