/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation and GitHub. All rights reserved.
*--------------------------------------------------------------------------------------------*/
function f() {
const controller = {};
const initialControllerProperties = {};
for (const k in controller) {
- if (controller.hasOwnProperty(k)) {
+ if (Object.prototype.hasOwnProperty.call(controller, k)) {
initialControllerProperties[k] = controller[k];
}
}
}