qcobjects
Version:
QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.
15 lines (13 loc) • 482 B
text/typescript
/**
* Creates an object from a Class definition
*
* @param {QC_Object} o
* @param {Object} args
*/
export const New = function (__class__:any, args = {}):any {
args = (arguments.length > 1) ? (args) : ({});
return (typeof __class__ === "undefined") ? (new Object()) : (new __class__(args));
};
New.prototype.toString = function () {
return "New(QCObjectsClassName, args) { [QCObjects native code] }";
};