JavaScript usando Math.max () en una matriz

function myArrayMax(arr) {
  return Math.max.apply(null, arr);
}
naly moslih