jquery check if value is in array

JavaScript
$.inArray( 5 + 5, [ "8", "9", "10", 10 + "" ] );

Source

Also in JavaScript: