For generic functions that take in a property as a second parameter, make it so that they can also take in a function (a mapper / transform).
For generic functions that take in a property as a second parameter, make it so that they can also take in a function (a mapper / transform).