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.

9 lines 304 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRecord = isRecord; function isRecord(value) { return (x) => { return typeof x === "object" && x !== null && !Array.isArray(x) && Object.values(x).every(value); }; } //# sourceMappingURL=isRecord.js.map