Public feed #1231743

array max min js math function

public text v1 · immutable
Raw Edit
·published 2008-10-20 10:37 UTC
rendered paste body
<script type="text/javascript">
Array.max = function( array ){
    return Math.max.apply( Math, array );
};

Array.min = function( array ){
    return Math.min.apply( Math, array );
};
</script>