We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3036dea commit 833c8efCopy full SHA for 833c8ef
README.md
@@ -167,6 +167,16 @@ ${1:myArray}.forEach(function (${2:elem}) {
167
});
168
```
169
170
+### [fi] for in
171
+
172
+```javascript
173
+for (var ${1:prop} in ${1:obj}) {
174
+ if (${1:obj}.hasOwnProperty(${1:prop})) {
175
+ ${3:// body...}
176
+ }
177
+}
178
+```
179
180
## Function
181
182
### [fu] function
for-in.sublime-snippet
@@ -0,0 +1,12 @@
1
+<snippet>
2
+ <content><![CDATA[
3
+for (var ${1:prop} in ${2:obj}) {
4
+ if (${2:obj}.hasOwnProperty(${1:prop})) {
5
6
7
8
+]]></content>
9
+ <tabTrigger>fi</tabTrigger>
10
+ <scope>source.js</scope>
11
+ <description>for in</description>
12
+</snippet>
0 commit comments