title: Typescript error "Argument of type 'number[]' is not assignable to parameter of type 'number'"
body: <p>I get the following error in Typescript:</p>
  
  <blockquote>
    <p>Argument of type 'number[]' is not assignable to parameter of type 'number'</p>
  </blockquote>
  
  <p>I get the max value of array without the below error:</p>
  
  <pre><code>analysis_horizon_array_test: number[] = [];
  
  this.analysis_horizon_array_test.push(1)
  console.log(Math.max(this.analysis_horizon_array_test));
  </code></pre>
  
  <p>How do I get the max value of an array without throwing an error? It does work though.</p>