I have the following javascript object:
Person1.Name = "John";
Person1.Age = 12;
Person2.Name = "Joe";
Person2.Age = 5;
I then have an array of persons, how do I find the Min/Max based on a persons age?
Any solution in Javascript or Jquery is acceptable.
your help is much appreciated.
Say your array looks like this:
then you can:
[Edit] Added ES2015 method: