diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index f4ef351..89e18d9 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -13,6 +13,11 @@ snippet f function(${1}) { ${0} } +# Function assigned to variable +snippet vf + var ${1} = function ${1}(${2}) { + ${0} + } # Immediate function snippet (f (function(${1}) {