Skip to content

Commit 701d981

Browse files
authored
Merge pull request #7 from lynnlangit/patch-2
vscoderefactoring tips
2 parents b3f847c + e08022a commit 701d981

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Tips/vscoderefactoring

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Convert to Member Function - converts named function to object prototype function
2+
Convert to Named Function - converts variable-assigned anonymous function to standard named function
3+
Export Function - adds export declaration to module for selected function
4+
Wrap in Condition - wraps selected code in an if block
5+
Wrap in Executed Function - wraps selected code in a function which is invoked on the next line
6+
Wrap in Function - wraps selected code in a function declaration
7+
Wrap if IIFE - wraps selected code in an immediately invoked function expression

0 commit comments

Comments
 (0)