title: JavaScript: detect if argument is array instead of object (Node.JS)
body: <p>How should I detect if the argument is an array because <code>typeof []</code> returns <code>'object'</code> and I want to distinguish between arrays and objects.</p>
  
  <p>It is possible that object will look like <code>{"0":"string","1":"string","length":"2"}</code> but I don't want it to come out as an array if it is in fact an object looking like an array.</p>
  
  <p><code>JSON.parse</code> and <code>JSON.stringify</code> are able to make this distinction. How can I do it?</p>
  
  <p>I am using Node.JS which is based on V8 the same as Chrome.</p>