title: How to detect if a variable is a pure javascript object
body: <p>I have a function I need to pass an object to. I use <code>typeof</code> operator to make a check before processing. But looking at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof" rel="noreferrer">this link</a>, it appears that <strong>many javascript instances, such as array or regex, are typed as Objects</strong>.</p>
  
  <p>I need my argument to be a pure object (like this : <code>{key: value, . . .}</code>).</p>
  
  <p>Is their any way I can check if a variable is pure object, without having to run specific test for each Object instance, like <code>Array.isArray()</code> ?</p>