Answers for "type script getting maximum value in an array"

2

Find the maximum number of an array js

var arr = [1, 2, 3];
var max = arr.reduce(function(a, b) {
  return Math.max(a, b);
});
Posted by: Guest on October-22-2020

Code answers related to "type script getting maximum value in an array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language