From 34904fdd367c9a3f7bbd9677324c10bfc4e9c672 Mon Sep 17 00:00:00 2001 From: noctisdb <31379173+noctisdb@users.noreply.github.com> Date: Wed, 30 Mar 2022 22:16:51 -0500 Subject: [PATCH] Update javascript.snippets --- micro-snippets-plugin/snippets/javascript.snippets | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/micro-snippets-plugin/snippets/javascript.snippets b/micro-snippets-plugin/snippets/javascript.snippets index db04e54..6a500eb 100644 --- a/micro-snippets-plugin/snippets/javascript.snippets +++ b/micro-snippets-plugin/snippets/javascript.snippets @@ -15,14 +15,9 @@ snippet f "" w 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}) { +snippet cf + const ${1:function_name} = (${2}) => { ${0} }; # Immediate function