title: How to determine if a javascript object is simple or complex?
body: <p>Basically I need to tell apart the following two:</p>
  
  <pre><code>var simple = 5 // or "word", or 56.78, or any other "simple" object
  var complex = {propname: "propvalue", "otherprop": "othervalue"}
  </code></pre>