Skip to content

Commit 2c55662

Browse files
committed
Merge pull request honza#449 from lpil/var-fun
Add JS function assigned to variable snippet
2 parents 13a14fa + 6448dea commit 2c55662

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
@@ -13,6 +13,11 @@ snippet f
1313
function(${1}) {
1414
${0}
1515
}
16+
# Function assigned to variable
17+
snippet vf
18+
var ${1} = function ${1}(${2}) {
19+
${0}
20+
}
1621
# Immediate function
1722
snippet (f
1823
(function(${1}) {

0 commit comments

Comments
 (0)