title: hasOwnProperty is not a function in Node.js?
body: <p>I am going to test if 'session' property exists:</p>
  
  <pre><code>console.log(queryData)
  console.log(typeof queryData)
  if ('session' in queryData) {
    console.log('in')
  }
  else {
    console.log('not in')
  }
  if (queryData.hasOwnProperty('session')) {
    console.log('has own propety')
  }
  </code></pre>
  
  <p>Its result is:</p>
  
  <pre><code>[Object: null prototype] { session: '0geBdiCsfczLQiT47dd45kWVN2Yp' }
  object
  in
  /home/ubuntu/22.enmsg/cli/main.js:72
    if (queryData.hasOwnProperty('session')) {
                  ^
  
  TypeError: queryData.hasOwnProperty is not a function
  </code></pre>
  
  <p>Why does the hasOwnProperty NOT work?</p>