UNPKG

@resk/core

Version:

An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla

1 lines 404 B
'use strict';function o(t){if(t==null)return false;if(typeof t=="function"){const s=t.toString();return s.startsWith("class")||s.includes("_classCallCheck")}if(typeof t=="object"){const s=Object.getPrototypeOf(t);if(!s||s===Object.prototype)return false;const n=s.constructor;if(!n||!(n!=null&&n.toString))return false;const e=n.toString();return /^\s*class\s+/.test(e)}return false}module.exports=o;