mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 10:19:02 +00:00
Use Object static
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
"prefix": "forin",
|
||||
"body": [
|
||||
"for (const ${1:key} in ${2:object}) {",
|
||||
"\tif (!${2:object}.hasOwn(${1:key})) continue;",
|
||||
"\tif (!Object.hasOwn(${2:object}, ${1:key})) continue;",
|
||||
"\t",
|
||||
"\tconst ${3:element} = ${2:object}[${1:key}];",
|
||||
"\t",
|
||||
|
||||
Reference in New Issue
Block a user