Answers for "javascript removing smallest number in array"

1

javascript removing smallest number in array

function removeSmallest(arr) {
    var min = Math.min(...arr);
    return arr.filter(e => e != min);
}
Posted by: Guest on March-29-2020

Code answers related to "javascript removing smallest number in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language