diff --git a/index.js b/index.js index 58ccb924..6b1f5c7e 100644 --- a/index.js +++ b/index.js @@ -85,5 +85,16 @@ function isMatched(str) { } 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"); +} + 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 +