@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
12 lines (10 loc) • 426 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");
}
export { IsEntityConstructor };
//# sourceMappingURL=constructor.utility.js.map