Looks like a pretty slick way to achieve what you are looking for... I'm not sure how cross-browser it is...
http://laurens.vd.oever.nl/weblog/items2005/setsinjavascript/ On 1/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 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. > >