Skip to content

Commit bb462d6

Browse files
authored
Merge pull request atom#664 from pbsds/patch-1
Add a 'forEach' snippet
2 parents 19271dc + 8513214 commit bb462d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

snippets/language-javascript.cson

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
'for of':
3636
'prefix': 'forof'
3737
'body': 'for (var ${1:variable} of ${2:iterable}) {\n\t$3\n}'
38+
'forEach':
39+
'prefix' : 'foreach'
40+
'body' : 'forEach((${1:item}, ${2:i}) => {\n\t$3\n});\n'
3841
'Function':
3942
'prefix': 'fun'
4043
'body': 'function ${1:functionName}($2) {\n\t$0\n}'

0 commit comments

Comments
 (0)