In my Helper function I have ConvertToSome Function:
export function convertToSome(item) {
item = item.toString();
var qq = "qwqe";
for(var i=0;i<10;i++)
{
item = item.split(i).join(qq[i]);
}
return item;
}
And In my Vue I have Component like this :
import { convertToSome } from '../../../helpers';
when I want to use this function in component I got this error :
TypeError: "_vm.convertToSome is not a function"
How can I use this function into template ?