I am using chrome dev tool console to debug my web application. I can write some javascript code on the console but I can't write something like const _ = require('lodash'). I wonder whether how I can make require work on console.
You could copy-paste the source code of the Lodash library into a Snippet.

Whenever you want to use Lodash on a page, you run the Snippet. After that, the Snippet is available under window._.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With