diff --git a/snippets/javascript.snippets b/snippets/javascript.snippets index a735f60..2d4aa9a 100644 --- a/snippets/javascript.snippets +++ b/snippets/javascript.snippets @@ -54,12 +54,12 @@ snippet case snippet for for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3: += 1}) { ${4:$1[$2]} - }; + } # for (...) {...} (Improved Native For-Loop) snippet forr for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3: -= 1}) { ${4:$1[$2]} - }; + } # while (...) {...} snippet wh while (${1:/* condition */}) { @@ -101,7 +101,7 @@ snippet ret snippet fori for (var ${1:prop} in ${2:Things}) { ${3:$2[$1]} - }; + } # hasOwnProperty snippet has hasOwnProperty(${1})