I want to make some utility functions for which the obvious place is as a method on some core objects
e.g.
Math.sum = function(arr) { 
  var total=0; 
  for ( x in arr) 
  { 
    total+= parseFloat(arr[x]); 
  } 
  return total;
}
I know that extending core types such as Array is generally considered a bad idea (although I'm not clear on the reasons for that). Would extending the Math object be an equally bad idea?
Obviously I can collect these functions elsewhere, it just seems logical to me that they should reside on the core objects.
 
    