Return to Snippet

Revision: 28109
at June 30, 2010 23:57 by mihael


Initial Code
var my_array = new Arra("10","20","5");

Array.max = function( array ){
    return Math.max.apply( Math, array );
};

Array.min = function( array ){
    return Math.min.apply( Math, array );
};

// use like: var biggestValue = Array.max(my_array);

Initial URL

                                

Initial Description
Get the min / max value from array.

Initial Title
Javascript Array Min/Max value

Initial Tags
javascript, array

Initial Language
JavaScript