Answers for "js array return the smallest positive integer"

1

get smallest value in array js

var test=[1, 2, 4, 77, 80];
console.log("Smallest number in test: "+Math.floor(Math.min(test)));
Posted by: Guest on April-24-2021
-1

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 return the smallest positive integer"

Code answers related to "Javascript"

Browse Popular Code Answers by Language