Answers for "js array find lowest value"

3

js find lowest number in array

const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
const min = arr.reduce((a, b) => Math.min(a, b))
console.log(min)
Posted by: Guest on April-18-2021
0

js get smallest value of array

Array.min = function( array ){
    return Math.min.apply( Math, array );
};
var minimum = Array.min(array);
Posted by: Guest on February-25-2021

Code answers related to "js array find lowest value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language