lib/stats.js
function() {
			// Sort the numbers
			var arr = this.clone().sort().toArray();

			if (arr.length % 2 === 0) {
				// There are an even number of elements in the array; the median
				// is the average of the middle two
				return (arr[arr.length / 2 - 1] + arr[arr.length / 2]) / 2;
			} else {
				// There are an odd number of elements in the array; the median
				// is the middle one
				return arr[(arr.length - 1) / 2];
			}
		}
function() {
			// Sort the numbers
			var arr = this.clone().sort().toArray();

			if (arr.length % 2 === 0) {
				// There are an even number of elements in the array; the median
				// is the average of the middle two
				return (arr[arr.length / 2 - 1] + arr[arr.length / 2]) / 2;
			} else {
				// There are an odd number of elements in the array; the median
				// is the middle one
				return arr[(arr.length - 1) / 2];
			}
		}
function ( ) { // Sort the numbers
 var arr = this . clone ( ) . sort ( ) . toArray ( ) ; if ( arr . length % 2 === 0 ) { // There are an even number of elements in the array; the median
 // is the average of the middle two
 return ( arr [ arr . length / 2 - 1 ] + arr [ arr . length / 2 ] ) / 2 ; } else { // There are an odd number of elements in the array; the median
 // is the middle one
 return arr [ ( arr . length - 1 ) / 2 ] ; } }
Finds the median of the numbers.  Returns the median.
Finds the median of the numbers . Returns the median .