Basic example exercise for the new platform. Make sure you're using the new application when running the below commands.
# Install dependencies
yarn
# Test the application
yarn test
- Using the senators array of data, perform the following filters, paste your filter code alongside each type of filter:
- By Party
- Republicans
- Democrats
- Independents
- Gender
- Male
- Female
- State
- By Party
- Map the array to format each object to look like this:
{ firstName: '', lastName: '', party: '', gender: ''}
- Find the senator from your birth state, and reduce your array to pull the most senior senator. Paste the filter, and reduce function here: (code)