There are functions and methods in my javascript code base that need to have assert statements to check for invalid arguments passed in. But these assertion statements should be stripped away when in production.
How are these assertion statements written in modern ES6 in development and how are they stripped away in production?