title: How to delete data from the javascript object from this data structure?
body: <p>I need to read all the connection times. (connectionTimes)
  I need to delete the line - when it will be offline more than online:</p>
  
  <pre><code>    userId: 1,
      connectionTimes:
          [
              {onlineTime:"11:10:30", offlineTime:"11:18:12"}, //delete
              {onlineTime:"11:14:14", offlineTime:"11:52:41"}  //delete
          ]
  </code></pre>
  
  <p>Delete user id - When times the connection will be empty.</p>
  
  <pre><code> userId: 1, //delete userid
          connectionTimes:
              [
                  //empty connection
              ]
  </code></pre>
  
  <p>I have this data structure:</p>
  
  <pre><code>var users = [];
  
      users[0] = {
          userId: 1,
          connectionTimes:
              [
                  {onlineTime:"11:10:30", offlineTime:"11:18:12"},
                  {onlineTime:"11:14:14", offlineTime:"11:52:41"}
              ]
      }
  
      users[1] = {
          userId: 2,
          connectionTimes: 
              [
                  {onlineTime:"8:08:14", offlineTime:"1:15:00"}
              ]
      } 
  </code></pre>