ottoman
Version:
Ottoman Couchbase ODM
17 lines • 485 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isModel = void 0;
/**
* Determine if a given parameter is
* a Model
* or a document built with a Model.
*/
const document_1 = require("../model/document");
const isModel = (model) => {
if (!model) {
return false;
}
return model instanceof document_1.Document || model.prototype instanceof document_1.Document;
};
exports.isModel = isModel;
//# sourceMappingURL=is-model.js.map