Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 8513214

Browse files
authored
Add a 'forEach' snippet
1 parent 19271dc commit 8513214

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

snippets/language-javascript.cson

+3
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)