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