I am learning ES6 at the moment. Just figured out a little bit about classes. Right now I have a collection of helpers in a JSON object. How do I refer to itself? I use babel to convert it to ES5 and it doesn't like it, it makes "_this" out of "this".
const pixieLib = {
methodA : (arg1) => {
console.log('foo');
},
methodB : () => {
this.methodA();
}
};
If there are better ways to make helpers all suggestions are welcome when they play nice with Babel.