I may be confusing OO with JS modules but I want to do something like this:
export default {
functionA:()=>{
this.functionB
},
functionB:()=>{
console.log('Hello from functionB')
},
}
then:
import pc from 'path/to/pc'
pc.functionA
desired result: 'Hello from functionB'
actual result: TypeError: Cannot read property 'functionB' of undefined
What is the correct way to do this?? Is it even possible? Any help would be greatly appreciated.