Fix #35322: Modenrize javascript snippets (#35444)

This commit is contained in:
prog-rajkamal
2017-10-10 01:02:38 +05:30
committed by Matt Bierner
parent 0bd33bbd96
commit 214437bd75
2 changed files with 38 additions and 0 deletions

View File

@@ -22,6 +22,16 @@
],
"description": "For Loop"
},
"For Loop (let)": {
"prefix": "forl",
"body": [
"for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
"\tlet ${3:element} = ${2:array}[${1:index}];",
"\t$0",
"}"
],
"description": "For Loop (let)"
},
"For-Each Loop": {
"prefix": "foreach",
"body": [
@@ -43,6 +53,15 @@
],
"description": "For-In Loop"
},
"For-Of Loop": {
"prefix": "forof",
"body": [
"for (let ${1:iterator} of ${2:object}) {",
"\t$0",
"}"
],
"description": "For-Of Loop"
},
"Function Statement": {
"prefix": "function",
"body": [