Find Oldest Person

Identifies the person with the maximum age.

Sample Data

Name,Age
Alice,20
Bob,50
Charlie,40

Result

null

Transform Function

R.compose(
  R.last,
  R.sortBy(R.prop('Age')),
  R.prop('data'),
  parseCSVWithOptions({header: true})
)