title: I try push into nested array but if don't save it correctly?
body: <p>Hi to all I am new in this, I post already an simile issue but now I have other one I get this object </p>
  
  <pre><code> singleChat =  [
          {
              "chatid": 10000414,
              "connected": true,
              "index": 0,
              "jsonedUser": {},
              "membership": "",
              "messages":[
                          { "chatid": 10000414, "createdOn": "2018-10-29T16:50:44.4900000", "isArchive": false, "isNew": false, "message": "great", "messageid": 3, "sentby": {"id":59, "name":"Omar"} },
                          { "chatid": 10000414, "createdOn": "2018-10-25T13:49:50.9900000", "isArchive": false, "isNew": false, "message": "hi", "messageid": 2, "sentby": {"id":59, "name":"Omar"} },
                          { "chatid": 10000414, "createdOn": "2018-10-31T10:20:59.5000000", "isArchive": false, "isNew": false, "message": "hello there", "messageid": 1, "sentby": {"id":91, "name":"Ana"} } 
                          ],
              "opened": true,
              "port": 10842,
  
  
          }
      ]
  </code></pre>
  
  <p>I try put a new element inside the messages array when I submit a form like this</p>
  
  <pre><code>$('#sendForm').submit(function(event){
          event.preventDefault();
           var val = $('#inputMessage').val();
           var chat =  { chatid: 10000414, createdOn: "2018-10-29T16:50:44.4900000", isArchive: false, isNew: false, message: val, messageid: 3, sentby: {id:59, name:"Ana"} }
  
           var newSingleChat = singleChat[0].messages.concat(chat);
           singleChat = newSingleChat;
  
           console.log(singleChat);
  
       });
  </code></pre>
  
  <p>but I console console.log(singleChat); is give to me this </p>
  
  <pre><code>0: {chatid: 10000414, createdOn: "2018-10-29T16:50:44.4900000", isArchive: false, isNew: false, message: "great", …}
  1: {chatid: 10000414, createdOn: "2018-10-25T13:49:50.9900000", isArchive: false, isNew: false, message: "hi", …}
  2: {chatid: 10000414, createdOn: "2018-10-31T10:20:59.5000000", isArchive: false, isNew: false, message: "hello there", …}
  3: {chatid: 10000414, createdOn: "2018-10-29T16:50:44.4900000", isArchive: false, isNew: false, message: "asdasd", …}
  </code></pre>
  
  <p>instead of some thing like this</p>
  
  <pre><code>  [
              {
                  "chatid": 10000414,
                  "connected": true,
                  "index": 0,
                  "jsonedUser": {},
                  "membership": "",
                  "messages":[
                              { "chatid": 10000414, "createdOn": "2018-10-29T16:50:44.4900000", "isArchive": false, "isNew": false, "message": "great", "messageid": 3, "sentby": {"id":59, "name":"Omar"} },
                              { "chatid": 10000414, "createdOn": "2018-10-25T13:49:50.9900000", "isArchive": false, "isNew": false, "message": "hi", "messageid": 2, "sentby": {"id":59, "name":"Omar"} },
                              { "chatid": 10000414, "createdOn": "2018-10-31T10:20:59.5000000", "isArchive": false, "isNew": false, "message": "hello there", "messageid": 1, "sentby": {"id":91, "name":"Ana"} } 
   "new message" -&gt;{chatid: 10000414, createdOn: "2018-10-29T16:50:44.4900000", isArchive: false, isNew: false, message: "asdasd", …}
                              ],
                  "opened": true,
                  "port": 10842,
  
              }
          ]
  </code></pre>
  
  <p>what am I doing wrong or how is it that this should be done, I do not want to modify the object, just only the array that is inside of this (messages) thanks so mush for any help</p>