For this chapter's exercise, you should do the following. Start by creating an array of people. Each person has a name and an age. Using what you've learned so far, try to render the array in a list and sort it by age
. After that, create a second list below and apply a custom filter called old
which returns all people older than 55
years old.
Feel free to fill the array with your own data. Be careful to add people with age older and younger than 55
to ensure your filter is working properly. Go ahead!
Example output
You can find a potential solution to this exercise here: https://goo.gl/F2Mdet.