how to find max value from array of object

questionshow to find max value from array of object
sandy asked 2 years ago

Hi expert i have an array of object

[{
“name”: “Joe”,
“dept”: “IT”,
“basic”: 45000
},
{
“name”: “Anytony”,
“dept”: “PROJECT”,
“basic”: 35000
},
{
“name”: “Harsh”,
“dept”: “IT”,
“basic”: 40000
},
{
“name”: “Shreya”,
“dept”: “IT”,
“basic”: 30000
}]

 
I want to find out max basic of IT Department using java script