check if value exists in array – jquery

Article is about checking element exists in array using jquery

Jquery Script:
example:
clone = [12,23,45,50]
if ($.inArray( 12 , clone ) != -1) {
console.log('Element exist in array clone');
} else {
console.log('Element does not exist in array clone');
}