Revision: 23306
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 3, 2010 14:47 by johndonahue
Initial Code
Object.prototype.clone = function () {var o = new Object(); for (var property in this) {o[property] = typeof (this[property]) == 'object' ? this[property].clone() : this[property]} return o} Array.prototype.clone = function () {var a = new Array(); for (var property in this) {a[property] = typeof (this[property]) == 'object' ? this[property].clone() : this[property]} return a}
Initial URL
Initial Description
Initial Title
JavaScript Clone Objects & Arrays
Initial Tags
javascript
Initial Language
JavaScript