Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/test/node/fixtures/pseudodiff/02-filewithtabs-replace.diff
13406 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation and GitHub. All rights reserved.
3
*--------------------------------------------------------------------------------------------*/
4
5
function f() {
6
const controller = {};
7
const initialControllerProperties = {};
8
for (const k in controller) {
9
- if (controller.hasOwnProperty(k)) {
10
+ if (Object.prototype.hasOwnProperty.call(controller, k)) {
11
initialControllerProperties[k] = controller[k];
12
}
13
}
14
}
15