Javascript Array all()

Description

Javascript Array all()

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



PreviousNext

Related