Detecting Minified JavaScript Code

added by JavaScript Kicks
4/9/2015 7:31:24 PM

1 Kicks, 264 Views

I recently found out a neat little trick to detect whether the currently executing piece of JavaScript code has been run through a minifier. Now, I'm not too sure whether there's a reasonable use case for this approach, but I find it interesting nonetheless, so here we go.