Functional helper for getting property on object.