Object

var a = {};
var b = qx.lang.Object.clone(a);

Array

var a = [];
var b = a.slice();