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.
2 parents 0326b5b + 8ee0f3a commit 7adbe2eCopy full SHA for 7adbe2e
UltiSnips/javascript.snippets
@@ -79,6 +79,14 @@ setTimeout(function() {
79
}${2:.bind(${3:this})}, ${1:10});
80
endsnippet
81
82
+snippet fi "for prop in obj using hasOwnProperty" b
83
+for (${1:prop} in ${2:obj}){
84
+ if ($2.hasOwnProperty($1)) {
85
+ ${VISUAL}$0
86
+ }
87
+}
88
+endsnippet
89
+
90
# Snippets for Console Debug Output
91
92
snippet ca "console.assert" b
@@ -121,6 +129,10 @@ snippet cl "console.log" b
121
129
console.log(${1:"${2:value}"});
122
130
123
131
132
+snippet cd "console.debug" b
133
+console.debug(${1:"${2:value}"});
134
135
124
136
snippet cprof "console.profile" b
125
137
console.profile("${1:label}");
126
138
${VISUAL}$0
0 commit comments