Just because of... Damn IE

Body

As I'm testing all of my work under firefox, And because we don't have IE under GNU/Linux "I won't even use it if it runs under GNU/Linux".
I'm hitting stupid IE things regarding Javascript, Maybe a Javascript guy'd know them. But I'm not that guy.
So something like this which works on firefox and opera:

if (arr[i][x] != undefined)

will cause IE to spit the error "undefined is undefined"
Now what the hell and what am I supposed to know and how am I supposed to know that this is the correct thing for IE ?

  if (typeof arr[i][x] != "undefined")

Add new comment

The content of this field is kept private and will not be shown publicly.