UNPKG

@frauschert/ts-guard

Version:

ts-guard is a typescript library that provides composable type guards. Its inspired by zod but focusses only on type guards and is more lightweight.

8 lines 253 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isDate = void 0; const isDate = (value) => { return value instanceof Date && !isNaN(value.getTime()); }; exports.isDate = isDate; //# sourceMappingURL=isDate.js.map