Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58a7ac7

Browse files
committed
Merge pull request honza#525 from nybblr/js-snippet-vaf
JS snippet: anonymous function variable assignment.
2 parents 7ce372f + 58560c6 commit 58a7ac7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

snippets/javascript/javascript.snippets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ snippet f
1515
function(${1}) {
1616
${0}
1717
}
18+
# Anonymous Function assigned to variable
19+
snippet vaf
20+
var ${1:function_name} = function(${2}) {
21+
${0}
22+
};
1823
# Function assigned to variable
1924
snippet vf
2025
var ${1:function_name} = function $1(${2}) {

0 commit comments

Comments
 (0)