-
-
Save Oikio/03ead4238e628c7cfb57e058ad8da090 to your computer and use it in GitHub Desktop.
Usefult regexps for TS/JS refactoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To arrow functions | |
function ?(\(.*\)) | |
$1 => | |
function (\w*)(\(.*\)) | |
const $1 = $2 => |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment