title: How big is console.assert() overhead?
body: <p>I use <code>console.assert</code> at a lot of places in my Javascript library. It's a good practice from software development point of view (it's easiest form of unit testing). But I would like to know how much it will affect the performance of my library when run in production.</p>
  
  <ul>
  <li>Can browsers skip <code>console.assert</code>s when they get some kind of indication that the code is not running in development environment? e.g. Devtools is not open in Chrome</li>
  <li>Can the bundling utilitiles like JS minifiers or Webpack/Browserify allow options to filter out <code>console.assert</code>s?</li>
  </ul>