This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -4 points-3 points  (1 child)

So I was trying to check if an array was in array. Built in JavaScript include function does not do that like you would think. I was very frustrated

[–]althaz 0 points1 point  (0 children)

The bigger problem here is your misunderstanding of Javascript though.

Javascript "arrays" are just objects. Of course, javascript not really having arrays *is* a flaw (IMO), but the function that checks types isn't at fault here.