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