I have the following code:
if variablename?
alert "YES!"
l = []
if l[3]?
alert "YES!"
It's translated into this:
var l;
if (typeof variablename !== "undefined" && variablename !== null) {
alert("YESSS!");
}
l = [];
if (l[3] != null) {
alert("YESSS!");
}
In Coffeescript, how would I express l[3] !== "undefined" ?