Javascript Array all()
all()
Array.prototype.all = function(){ return this.every(function(x){ return !!x;//from w ww. j a v a 2s.com }); };