How do I now check if the value is defined as undefined, or if it's really not defined?
eg.
var a = [];
a[0] = undefined;
// a defined value that's undefined
typeof a[0] === "undefined";
// and a value that hasn't been defined at all
typeof a[1] === "undefined";
Is there a way to separate these two? it's possible touse a for-in loop to go through the array, but is there a lighter way?