diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index fa8123d..5fbad8f 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -15,6 +15,11 @@ snippet f function(${1}) { ${0} } +# Anonymous Function assigned to variable +snippet vaf + var ${1:function_name} = function(${2}) { + ${0} + }; # Function assigned to variable snippet vf var ${1:function_name} = function $1(${2}) {