From a94cd00e63073093a7b066367121b626379506e2 Mon Sep 17 00:00:00 2001 From: Anto Christopher <93177734+anto-deepsource@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:24:18 +0530 Subject: [PATCH 1/4] Update index.js --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 58ccb924..259f27e3 100644 --- a/index.js +++ b/index.js @@ -87,3 +87,4 @@ function isMatched(str) { function commentCheck(){ console.log("no comment") } + From 5c7574a34f27b72510942824b91222cf24ef4c3b Mon Sep 17 00:00:00 2001 From: Anto Christopher <93177734+anto-deepsource@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:26:27 +0530 Subject: [PATCH 2/4] Update index.js --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 259f27e3..261d0e45 100644 --- a/index.js +++ b/index.js @@ -85,6 +85,7 @@ function isMatched(str) { } function commentCheck(){ + console.log("no comment") } From 41449fa46ed02ec24b3e5505f864dffd1d688fc5 Mon Sep 17 00:00:00 2001 From: Anto Christopher <93177734+anto-deepsource@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:09:12 +0530 Subject: [PATCH 3/4] Update index.js --- index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.js b/index.js index 261d0e45..6b1f5c7e 100644 --- a/index.js +++ b/index.js @@ -89,3 +89,12 @@ function commentCheck(){ console.log("no comment") } +function isFooAvailable1(obj) { + console.log(`Value of obj[foo]: ${obj["foo"]}`); + return obj.hasOwnProperty("foo"); +} + +if (true == yoda) { + console.log("I am yoda"); +} + From 3fc061380fc1eb72786be5c90d41f29601181db0 Mon Sep 17 00:00:00 2001 From: Anto Christopher <93177734+anto-deepsource@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:11:25 +0530 Subject: [PATCH 4/4] Update index.ts --- packages/demo-typescript/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/demo-typescript/src/index.ts b/packages/demo-typescript/src/index.ts index 00639d23..b37e0652 100644 --- a/packages/demo-typescript/src/index.ts +++ b/packages/demo-typescript/src/index.ts @@ -12,9 +12,10 @@ class SampleClass { } if(x){ return x }else { + // @ts-ignore: Unreachable code error return 'hello world' } } } - \ No newline at end of file +