Last active
September 5, 2022 04:03
-
-
Save broskees/01404e4f83c06d19fbd38737a006a64e to your computer and use it in GitHub Desktop.
A short and sweet javascript debugger function that tells you the variable name and the function it was called in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const debuggerFn = variable => console.log({[debuggerFn.caller]: {variable}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment