Merge pull request #71 from thisgeek/master
Remove needless semicolon from Javascript for-loops
This commit is contained in:
commit
5eed06fe0e
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user