A short solution to test Meteor methods in the browser

I just want to share some finding, which is quite obvious, but I often see it in a more complex way in some tutorials, just like this:

Meteor.call('aMethodWithoutParameters', (err, result ) => {
   console.log(err); 
   console.log(result);
})

This could be written shorter:

Meteor.call('aMethodWithoutParameters', console.log)

Have fun implementing your Meteor app :slight_smile:

3 Likes