I need to add some prototype to Array class,in native javascript I can do following
var myArray = Array;
myArray.prototype.myMethod = function(){}
var testArray = new myArray();
testArray.contains();
but now I need to do this by node js module and exports myArray as class so can make some object from it,how can I do this?
myArrayat all when it is just the globally availableArray?