Skip to content

Commit 7adbe2e

Browse files
committed
2 parents 0326b5b + 8ee0f3a commit 7adbe2e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

UltiSnips/javascript.snippets

+12
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ setTimeout(function() {
7979
}${2:.bind(${3:this})}, ${1:10});
8080
endsnippet
8181

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+
8290
# Snippets for Console Debug Output
8391

8492
snippet ca "console.assert" b
@@ -121,6 +129,10 @@ snippet cl "console.log" b
121129
console.log(${1:"${2:value}"});
122130
endsnippet
123131

132+
snippet cd "console.debug" b
133+
console.debug(${1:"${2:value}"});
134+
endsnippet
135+
124136
snippet cprof "console.profile" b
125137
console.profile("${1:label}");
126138
${VISUAL}$0

0 commit comments

Comments
 (0)