I am currently in the process of developing a financial application using Vue.js and Vuetify. As part of my project, I have created several component files such as
Dashboard.vue
Cashflow.vue
NetWorth.vue
stores.js <- Vue Vuex
Throughout my development, I have realized that there are some core functions that I need to use across all my Vue.js and javascript files. I'm wondering if it would be feasible for me to create a function library that can be accessed by all the components and js files.
function moneyFormat(num)
function IRRCalc(Cashflow)
function TimeValueMoneyCalc(I,N,PV,FV,PMT)
function PerpetualAnnuityCalc(I,PV)
function CarLoanInstallment(V,N)
function HouseLoanInstallment(V,N)
In C programming, including external libraries is straightforward with #include<financial.h>
. Is there an equivalent method in JavaScript?
Thank you.