5 Replies Latest reply on Jun 27, 2010 3:25 AM by Francisc

    Update object or merge

    Francisc Level 3

      Hello!

       

      Given 2 objects:

       

      bigObj={id:1,name:"Test",time:3,colour:"blue"};

      smallObj={name:"Test X",time:10};

       

      How can I update the bigObj with data from smallObj?

       

      Is there another way besides the classing 1-on-1 assignments: bigObj.name=smallObj.name etc?

       

      Thanks!