JSFiddle - React, Tailwind, and code Playground

by Addy Osmani

JavaScript

var newObj = {

    newDate: new Date(), deepObj: {

        newerDate: new Date() }

    };

console.log ( 'test1:' + newObj.newDate); 
//works in:
//1.4.2, 1.3.2

var copyObj = jQuery.extend(true,{},newObj); 

console.log ('test2:' + copyObj.newDate); 
//works in:
//1.4.2

console.log('test3:' +  copyObj.deepObj.newerDate);
//works in:
//1.4.2