How to find out where your function is being called from

// Define your functions
const c = () => console.log('called by', new Error().stack)
const b = () => c()
const a = () => b()

// Call the function
a()

Last updated

Was this helpful?