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()
PreviousHow can I parse a template string into its constant and variable parts?NextHow can I simplify argument validation in a function?
Last updated
Was this helpful?