Just starting to learn Javascript and Angular. I have an array within an array.
This is my array structure:
[[object1, object2],[object3, object 4]];
I want to get the highest value from object2 and object 4.
When i only had one array i used
Math.max.apply(Math, array.map(function(o){return o.collectionID;}));
Is it possible and how can i retrieve the highest value from an array within an array?