Functions inside Tracker.autorun()

Hi, I have a function inside tracker.autorun() like this:

Tracker.autorun(function() {
    function getproduct() {...};
});

I want to use getproduct() in another place in the same file. How do I reference the function? In general, how do I reference any result from Tracker.autorun()?

You can declare the function outside the tracker. Tracker will still find the reactive variables.