I am building firebase function with javascript. Now i have a lot of inter-call function and i plan to move those function into different file to avoid index.js become very messy.
So below is the current file structure:
/functions
|--index.js
|--internalFunctions.js
|--package.json
|--package-lock.json
|--.eslintrc.json
I want to know:
1) How to export the function from internalFunctions.js and import it to index.js.
2) How to call internalFunctions.js function from index.js.
My code is written in JavaScript.
Edited
internalFunction.js will have multiple functions.