File tree Expand file tree Collapse file tree
extensions/javascript/snippets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 ],
2323 "description" : " For Loop"
2424 },
25+ "For Loop (let)" : {
26+ "prefix" : " forl" ,
27+ "body" : [
28+ " for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {" ,
29+ " \t let ${3:element} = ${2:array}[${1:index}];" ,
30+ " \t $0" ,
31+ " }"
32+ ],
33+ "description" : " For Loop (let)"
34+ },
2535 "For-Each Loop" : {
2636 "prefix" : " foreach" ,
2737 "body" : [
4353 ],
4454 "description" : " For-In Loop"
4555 },
56+ "For-Of Loop" : {
57+ "prefix" : " forof" ,
58+ "body" : [
59+ " for (let ${1:iterator} of ${2:object}) {" ,
60+ " \t $0" ,
61+ " }"
62+ ],
63+ "description" : " For-Of Loop"
64+ },
4665 "Function Statement" : {
4766 "prefix" : " function" ,
4867 "body" : [
Original file line number Diff line number Diff line change 2222 ],
2323 "description" : " For Loop"
2424 },
25+ "For Loop (let)" : {
26+ "prefix" : " forl" ,
27+ "body" : [
28+ " for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {" ,
29+ " \t let ${3:element} = ${2:array}[${1:index}];" ,
30+ " \t $0" ,
31+ " }"
32+ ],
33+ "description" : " For Loop (let)"
34+ },
2535 "For-Each Loop" : {
2636 "prefix" : " foreach" ,
2737 "body" : [
4353 ],
4454 "description" : " For-In Loop"
4555 },
56+ "For-Of Loop" : {
57+ "prefix" : " forof" ,
58+ "body" : [
59+ " for (let ${1:iterator} of ${2:object}) {" ,
60+ " \t $0" ,
61+ " }"
62+ ],
63+ "description" : " For-Of Loop"
64+ },
4665 "Function Statement" : {
4766 "prefix" : " function" ,
4867 "body" : [
You can’t perform that action at this time.
0 commit comments