Jquery create an Object Class from Object

Jquery create an Object Class from Object

I am using a create function from one of the plugin to convert an object into class.

  1.  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

  1.  create = Object.create || function(proto,args) { 
    function F(args) {} F.prototype = proto;
    F.prototype.constructor = F; return new F(args);
    };