Get property of register helper object in template


#1

This is my register helper method:

Template.registerHelper(‘person’, (id) => {
return Persons.findOne({“userId”: id});
});

How i get get firstname property of person in template?
i try this.
{{#each messages}}
{{person sender}}
{{/each}}

output is:

output is : [Object object]