I am new to Javascript and I was wondering is there a similar function in Javascript like C# Select(). My task is from array of people to sort the age of them and select only age of each person and print it. And this is what i come up with:
ageArraySorted = args.sort(function(person1, person2) {
return person1.age - person2.age;
});
I sorted them and now I need only the values of age property to be printed.