code: function max(expression) {
  
          //Define output
  		var outData;
  		
  		//If there's no expression
  		if (!expression){
  		
  			//Just assign current items
  			outData = this.items;
  		}
  		else{
  		
  			//Otherwise apply select condition
  			outData = jslinq(this.items)
  				.select(expression)
  				.toList();
  		}
  		
  		//If array has no elements, returns null
  		if (outData.length === 0){
  			return null;
  		}
  		else{
  		
  			//Apply orderby
  			outData = jslinq(outData)
  				.orderBy(function(x) { return x; })
  				.toList();
  				
  			//Returns last element
  			return outData[outData.length - 1];
  		}
      }
docs: #region "max" Get the max element matching criteria the number of specified elements