How i can call a erpnext js function on my own app


I need to use a function of erpnext in my app but every time I call it it says that it does not exist, but when I do the console.log() it does bring me the class