I have the following object literal:
var a = {a:1,b:2}
now I want another instance of the same object. If I'm using a constructor, I can do this using the 'new' operator, ie:
b = new a();
How to create a new instance of an object using object literals?