Answers for "javascript minimum number in array"

7

javascript minimum number in array

const min = arr => Math.min(...arr);
Posted by: Guest on July-03-2020
1

how to return the max and min of an array in javascript

function minMax(arr) {
  return [Math.min(...arr), Math.max(...arr)];
}
Posted by: Guest on April-09-2020
2

javascript math min array

const nums = [1, 2, 3]Math.min(...nums)    // 1Math.max(...nums)    // 3
Posted by: Guest on May-09-2020

Code answers related to "javascript minimum number in array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language