Skip to content

Instantly share code, notes, and snippets.

@jameswomack
Created September 2, 2021 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameswomack/e928ef1480f5642755b52af8b03d68a8 to your computer and use it in GitHub Desktop.
Save jameswomack/e928ef1480f5642755b52af8b03d68a8 to your computer and use it in GitHub Desktop.
Replacing named function expressions w/ arrow body style
Find:
function ([a-zA-Z]+)(\([a-zA-Z, \{\}]+\)) (\{)
Replace:
const $1 = $2 => $3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment