title: JavaScript's `delete` operator not working as expected
body: <p>I have an object like below:</p>
  
  <pre><code>var doc = {
    local: {
      username: 'admin',
      status: true,
      password: '$2a$08$81Kq7/59ZASHl5k9n5cNvOUSl/HYgpLKZjs66P/OJV8vw.nHW60Ta',
      lastname: 'admin',
      firstname: 'admin',
      email: 'admin@gmail.com',
      datetime_modified: 'TueAug30201623: 10: 56GMT+0530(IST)',
      datetime_created: 'MonAug29201622: 34: 12GMT+0530(IST)'
    },
    roles: [
      'ADMIN',
      'HR'
    ],
    GridOrder: [
      {
        _id: '57e507fce94094be085425c9',
        domainName: 'items'
      }
    ],
    _id: '57c46b0c12907af910167ff5',
    __v: 9
  }
  </code></pre>
  
  <p>Now I want to remove the property "GridOrder" from "doc". 
  I tried using "delete" like below:</p>
  
  <pre><code>delete doc.GridOrder
  </code></pre>
  
  <p>and also like below: </p>
  
  <pre><code>delete doc['GridOrder']
  </code></pre>
  
  <p>But nothing is happening. Also I am not getting any error.</p>
  
  <p>How can I remove "GridOrder" from "doc". Any ideas?</p>