Remove needless semicolon separator from the end of for loops.
This commit is contained in:
parent
1ad1e67be1
commit
73377e6742
@ -54,12 +54,12 @@ snippet case
|
|||||||
snippet for
|
snippet for
|
||||||
for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3: += 1}) {
|
for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3: += 1}) {
|
||||||
${4:$1[$2]}
|
${4:$1[$2]}
|
||||||
};
|
}
|
||||||
# for (...) {...} (Improved Native For-Loop)
|
# for (...) {...} (Improved Native For-Loop)
|
||||||
snippet forr
|
snippet forr
|
||||||
for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3: -= 1}) {
|
for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3: -= 1}) {
|
||||||
${4:$1[$2]}
|
${4:$1[$2]}
|
||||||
};
|
}
|
||||||
# while (...) {...}
|
# while (...) {...}
|
||||||
snippet wh
|
snippet wh
|
||||||
while (${1:/* condition */}) {
|
while (${1:/* condition */}) {
|
||||||
@ -101,7 +101,7 @@ snippet ret
|
|||||||
snippet fori
|
snippet fori
|
||||||
for (var ${1:prop} in ${2:Things}) {
|
for (var ${1:prop} in ${2:Things}) {
|
||||||
${3:$2[$1]}
|
${3:$2[$1]}
|
||||||
};
|
}
|
||||||
# hasOwnProperty
|
# hasOwnProperty
|
||||||
snippet has
|
snippet has
|
||||||
hasOwnProperty(${1})
|
hasOwnProperty(${1})
|
||||||
|
Loading…
Reference in New Issue
Block a user