@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
14 lines (11 loc) • 460 B
JavaScript
;
/**
* Checks whether the candidate is a class constructor reference.
* @param {unknown} candidate - Value to inspect.
* @returns {boolean} True when candidate is a constructor function.
*/
function IsEntityConstructor(candidate) {
return typeof candidate === "function" && Object.prototype.hasOwnProperty.call(candidate, "prototype");
}
exports.IsEntityConstructor = IsEntityConstructor;
//# sourceMappingURL=constructor.utility.js.map