Skip to content

Instantly share code, notes, and snippets.

@Oikio
Last active February 7, 2018 10:36
Show Gist options
  • Save Oikio/03ead4238e628c7cfb57e058ad8da090 to your computer and use it in GitHub Desktop.
Save Oikio/03ead4238e628c7cfb57e058ad8da090 to your computer and use it in GitHub Desktop.
Usefult regexps for TS/JS refactoring
# 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