obj vs nested obj

Edit on GitHub

nested property accessor and assign

Setup

Tests

  • obj

    var a = { aa: 1};
    
    var old = a.aa;
    a.aa = 2;
  • nested obj

    var a = { aa: { aaa: 1 }};
    
    var old = a.aa.aaa;
    a.aa.aaa = 2;