Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    Good call on the ECMAScript 5 standard. Sure you can't guarantee the browser supports it but this should be the first way to check in new code. Commented Dec 13, 2012 at 22:43
  • I'll start by saying that this is a bit over my head. However, would a test like this be more robust?: return Object.prototype.toString.call(o) === Object.prototype.toString.call([]); Commented Jun 24, 2014 at 12:41