export const arrayMax = function(arr) {
  return arr.reduce((p, v) => (p > v ? p : v));
};