I found the following code to be used to find the maximum of an array of values. I understand the concept of the array object in addition to Math.max but this is the first time that I've seen "apply" and I'm not sure how this particular code does what it does. If someone wouldn't mind giving me a quick explanation, I'd appreciate it.

Array.max = function( array ){
    return Math.max.apply( Math, array );
Thanks so much,