Global helper functions?


#1

I have quite a lot of funtions that I need to use multiple times and at many places. So how to create a ‘global function’ that can be called in any component, I don’t want to use mixin tho… Thank you.


#2

I’d suggest just importing them:

import myHelper from '/imports/helpers/myHelper';

// use myHelper