Saturday, 1 October 2016

Get the Min and Max value of any Array

Hello guys, i am sharing jquery sample code to get the Min and Max value of any Array.

below i have written 2 jquery function that gives min and max value from array.

function getMaxOfArray(numArray) {
    return Math.max.apply(null, numArray);

function getMinOfArray(numArray) {
    return Math.min.apply(null, numArray);


No comments:

Post a Comment

Note: only a member of this blog may post a comment.