assuming .indexOf() is implemented can implement something similar to obj.hasOwnProperty(prop)
Object.defineProperty( Array.prototype,'has',
{
value:function(o){return this.indexOf(o)!=-1},
writable:false,
enumerable:false
}
)
now the new method can be used like
[22 ,'a', {prop:'x'}].has(12)
returning false