I need to check if array contains at least one empty elements. If any of the one element is empty then it will return false.
Example:
var my_arr = ne
function containsEmpty(a) { return [].concat(a).sort().reverse().pop() === ""; } alert(containsEmpty(['1','','qwerty','100'])); // true alert(containsEmpty(['1','2','qwerty','100'])); // false