We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 29dacf5 + 7d29982 commit 83fc874Copy full SHA for 83fc874
src/interface.ts
@@ -20,7 +20,7 @@ export function xdateToData(date: XDate | string) {
20
}
21
22
export function parseDate(d?: any) {
23
- if (d === undefined) {
+ if (!d) {
24
return;
25
} else if (d.timestamp) {
26
// conventional data timestamp
0 commit comments