Skip to content

Instantly share code, notes, and snippets.

@bnchdrff
Created March 15, 2019 03:07
Show Gist options
  • Save bnchdrff/54b2647211e8b62d66b60e8b6dc13040 to your computer and use it in GitHub Desktop.
Save bnchdrff/54b2647211e8b62d66b60e8b6dc13040 to your computer and use it in GitHub Desktop.
refactoring then to await
s%\(await .*\).then(\(.*\) => {%const \2 = \1;
s%.then(() =>\_.\W*\(.*\)%await \1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment