DEV Community

Discussion on: Pattern-Match your JavaScript with Z

halcaponey_35 profile image

and js-function-reflector uses the toString() method availaible on functions

Thread Thread
joelnet profile image
JavaScript Joel

the toString()

That doesn't seem like it would work for minified code as the parameter names would be uglified.

Thread Thread
kayis profile image
K (he/him) Author

It works as long as you don't compile the default arguments to ES5.