im taking my first steps with angular and came across this problem. i have this array :
var users = [{
id: 0,
'name': 'John',
'score': '46',
'difference': 'diff from top'
},{
id: 0,
'name': 'Harry',
'score': '45',
'difference': 'diff from top'
},{
id: 0,
'name': 'Sam',
'score': '43',
'difference': 'diff from top'
}];
and i want to get the highest score and store it in a variable (in this case - 46). how can i do that?? im looking for as much "angularish" solution as possible