javascript lowest in array code example
Example 1: 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)
Example 2: how to find smallest number in array js
Array.min = function( array ){
return Math.min.apply( Math, array );
};