create = Object.create || function(proto) {
function F() {} F.prototype = proto;
F.prototype.constructor = F; return new F();
};
protocomponent = {options:{},setOptions:{} } create(protocomponent);
I need to create a object class which receives the arguments.
I need help to modify the create object function which receives a arguments
Currently I am calling setOptions function to set the arguments?
Like
create = Object.create || function(proto,args) {
function F(args) {} F.prototype = proto;
F.prototype.constructor = F; return new F(args);
};