Answers for "javascript lowest in array"

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
1

how to find smallest number in array js

Array.min = function( array ){
    return Math.min.apply( Math, array );
};
Posted by: Guest on November-25-2020

Code answers related to "javascript lowest in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language