JSFiddle - React, Tailwind, and code Playground
by mckennatim
HTML
<script type="text/javascript">
<!--
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}
a = ['fee', 'fie', 'foe', 'fum',[1, 2, 3, 4]];
b = a.clone();
a[4][1] = 'foo';
alert(a[4][1]);
alert(b[4][1]);
// -->
</script>