Possible Duplicate:
Checking if an associative array key exists in Javascript
i have a PHP code block . for a purpose i am converting this to a javascript block ,
i have PHP
if(array_key_exists($val['preferenceIDTmp'], $selected_pref_array[1]))
now i want to do this in jquery . is there any built in function to do this , i am stuck , please help , thanks in advance .