function isEmpty(object) { for (var key in object) if (object.hasOwnProperty(key)) return true; return false; } var arr=[]; arr['param1']='any data1', arr['param2']='any data2', arr['param3']='any data3'; alert( isEmpty(arr) );