Skip to content

Commit 6367232

Browse files
committed
simplify object key check
1 parent 60e7740 commit 6367232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devextreme-angular/src/core/deprecated-config-warning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function getHostMapping(host: INestedOptionContainer | undefined): DeprecatedCon
3434
visited.add(current);
3535

3636
const ctorName = current.constructor?.name;
37-
if (ctorName && Object.prototype.hasOwnProperty.call(DEPRECATED_CONFIG_COMPONENTS, ctorName)) {
37+
if (ctorName && Object.hasOwn(DEPRECATED_CONFIG_COMPONENTS, ctorName)) {
3838
return DEPRECATED_CONFIG_COMPONENTS[ctorName] as DeprecatedConfigEntry;
3939
}
4040

0 commit comments

Comments
 (0)