Within my Angular (TypeScript) Project, I am working with an object array.
let a = [{min:0, max:10},{min:10, max:810},{min:-10, max:110}];
My goal is to extract the minimum value of the min properties and the maximum value of the max properties. To achieve this, I want to create two variables as follows:
let min = // The minimum value from the min properties of all items would be -10;
let max = // The maximum value from the max properties of all items would be 810;
Is there a practical way, using lambda functions or other methods, to accomplish this task?