Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove the minimum

function removeSmallest(numbers) {

let arr = []

let min =  Math.min(...numbers)


 for(let i =0;i< numbers.length;i++){

  if(numbers[i] !== min){
      arr.push(numbers[i])

  }

 }
 return arr
 }
 
PREVIOUS NEXT
Tagged: #Remove #minimum
ADD COMMENT
Topic
Name
8+6 =