Buckets:

imerfanrajabee's picture
download
raw
363 Bytes
/**
* Checks to see if a value is not only a `Date` object,
* but a *valid* `Date` object that can be converted to a
* number. For example, `new Date('blah')` is indeed an
* `instanceof Date`, however it cannot be converted to a
* number.
*/
export function isValidDate(value: any): value is Date {
return value instanceof Date && !isNaN(value as any);
}

Xet Storage Details

Size:
363 Bytes
·
Xet hash:
03b265bc1fc727512d38639122397e0155547f843b207fbc35738f6a1b314662

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.