mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Use the in operator
This commit is contained in:
parent
00d37268e8
commit
e3690c3a07
@ -775,7 +775,7 @@ namespace ts {
|
||||
// defined in `ts.commentPragmas` would be excessive, but we can avoid
|
||||
// some obvious false positives (e.g. in XML-like doc comments) by
|
||||
// checking the element name.
|
||||
if (!match[3] || !(commentPragmas as any)[match[3]]) {
|
||||
if (!match[3] || !(match[3] in commentPragmas)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user