There's no built in function, but you can use this to get the sum,
Array.prototype.sum = function() {
return this.reduce(function(a,b){return a+b;});
};
then divide by the arrays length, e.g.:
var arr = [1,2,3,4,5]
console.log(arr.sum() / arr.length)