Write Code to Rewrite Your Code: jscodeshift



To get our feet wet, let’s start with removing calls to all console methods in our code base. While you can do this with find and replace and a little regex, it starts to get tricky with multiline statements, template literals, and more complex calls, so it’s an ideal example to start with.

from Pocket http://ift.tt/28Pschr
via IFTTT

このブログの人気の投稿