JavaScript does have an "in" operator.
"The in operator expects a lefthand operand that is or can be
converted to a string. It expects a righthand operand that is an
object (or array). It evaluates to true if the lefthand value is the
name of a property of the righthand object. For example:
var point = { x:1, y:1 };
var has_x_coord = "x" in point; // Evaluates to true"
(From JavaScript, The Definitive Guide, page 67.)
In python we have the handy "in" operator:
if 3 in [1,2,3]: ...
Is there a similar function in MochiKit? I looked around and couldn't
see one, so I wrote on myself.