Source:
var o = { 'boolean' :false, 'number' :1, 'string' :'Can\'t you "uneval" this? \\', 'null' :null, 'undefined':undefined, 'function' :function(o){ return o }, 'array' :[0,1,2,3], 'regexp' :/[0-9A-Za-z]+/g, 'date' :new Date(), 'object' :{zero:0,one:1} }; p(uneval(o['boolean'])); p(uneval(o['number'])); p(uneval(o['string'])); p(uneval(o['undefined'])); p(uneval(o['null'])); p(uneval(o['function'])); p(uneval(o['array'])); p(uneval(o['regexp'])); p(uneval(o['date'])); p(uneval(o['object'])); p(uneval(o)); var o2 = eval(uneval(o)); p(o2); p(uneval(o2)); o2 = clone(o); o2['number']++; p(uneval(o2)); p(uneval(o));
stdout:
stderr: