We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b25264f commit 2f6b31eCopy full SHA for 2f6b31e
js/src/code-interpreter.ts
@@ -231,8 +231,7 @@ export class JupyterExtension {
231
* Close all the websocket connections to the kernels. It doesn't shutdown the kernels.
232
*/
233
async close() {
234
- // TODO: For in check
235
- for (const kernelID in this.connectedKernels) {
+ for (const kernelID of Object.keys(this.connectedKernels)) {
236
this.connectedKernels[kernelID].close()
237
}
238
js/src/messaging.ts
@@ -113,8 +113,7 @@ export class Data {
113
this.raw = data
114
115
this.extra = {}
116
117
- for (const key in data) {
+ for (const key of Object.keys(data)) {
118
if (![
119
'text/plain',
120
'text/html',
0 commit comments