I have an array of objects like so. I really don't know where to start with this which is why I've not posted any attempts. Even a nudge in the right direct would help a lot!
What I want is for my data to be sorted (based on a 50:50 weight) between humidity and temperature where the ideal (most top ranking) is 60 humidity and 40 temp.
This is my data;
Array[5]
0: Object
humidity: 65
name: "HLLM"
temp: 25
__proto__: Object
1: Object
humidity: 61
name: "LICD"
temp: 27
__proto__: Object
2: Object
humidity: undefined
name: "EW3448"
temp: 28
__proto__: Object
3: Object
humidity: 42
name: "HLLT"
temp: 29
__proto__: Object
4: Object
humidity: 30
name: "LMML"
temp: 30
Kind Regards, Harry