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.

6
  • 5
    Won't this return true on a string? Commented Jun 29, 2009 at 14:00
  • 1
    The example given is not ment to answer the question itself, is is merely an example of how a solution might be approached - which often fail in special cases (like this one, hence the "However, note..."). Commented Jun 29, 2009 at 14:45
  • 1
    cant' believe this is so difficult to do... Commented Jun 29, 2009 at 17:08
  • 2
    possible duplicate of How do you check if a variable is an array in JavaScript? Commented Oct 22, 2014 at 3:46
  • 1
    possible duplicate of Check if object is array? Commented Aug 7, 2015 at 7:23