@fabric-es/operator
Version:
Network operator
12 lines • 732 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCommitRecord = void 0;
const isCommitRecord = (input) => Object.entries(input)
.map(([key, value]) => (value === null || value === void 0 ? void 0 : value.commitId) !== undefined &&
(value === null || value === void 0 ? void 0 : value.id) !== undefined &&
(value === null || value === void 0 ? void 0 : value.entityId) !== undefined &&
(value === null || value === void 0 ? void 0 : value.version) !== undefined &&
(value === null || value === void 0 ? void 0 : value.entityName) !== undefined)
.reduce((acc, curr) => curr && acc, true);
exports.isCommitRecord = isCommitRecord;
//# sourceMappingURL=isCommitRecord.js.map