JavaScript finden die kleinste Zahl in einem Array
const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
const min = Math.min(...arr)
console.log(min)
Yawning Yak
const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
const min = Math.min(...arr)
console.log(min)
const arr = [14, 58, 20, 77, 66, 82, 42, 67, 42, 4]
Array.min = function( array ){
return Math.min.apply( Math, array );
};
var minimum = Array.min(array);