Hi,
1. What the best way to check array or object with JQuery undefined + null?
I check array like that:
function f1(arr){
if(arr!==undefined&&arr!=null){
//code
}
}
Is Jquery have better way?
2. What the best way to check String with JQuery trim(str)!==""?
I check String like that:
function f2(str){
if(str!==undefined&&str!=null&&$.trim(str)!==''){
//code
}
}
Is Jquery have better way?
Thanks