I'm trying to check is p array or not. Am I trying to check true or where am i my making mistake. Actually now i'm learning jQuery.isArray.
I think I make mistake in my code but i do not know where. Thank you
var p = ['foo',''];
if(!$(p).isArray()){
alert('no');
}else{
alert('yes');
}
$.isArrayis an utility function and not a dom element method and they should be used as @Rajaprabhu Aravindasamy demonstrated in his answer. The way you used is for dom elements method such ason,hide,remove, ...