structured-elements
Version:
A TypeScript package for modelling and validating data
12 lines • 385 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRecordWithId = void 0;
const record_1 = require("./record");
const isRecordWithId = (subject) => {
if (!(0, record_1.isRecord)(subject)) {
return false;
}
return typeof subject.id === `string`;
};
exports.isRecordWithId = isRecordWithId;
//# sourceMappingURL=recordWithId.js.map