Skip to content

Instantly share code, notes, and snippets.

@shikumiya-hata
Created October 21, 2020 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikumiya-hata/83e6f14e2cc2349a43add76dc4652be6 to your computer and use it in GitHub Desktop.
Save shikumiya-hata/83e6f14e2cc2349a43add76dc4652be6 to your computer and use it in GitHub Desktop.
const Foo = Lib.foo() // クラスをlocal globalな定数に入れてしまう
function myFunction() {
const foo = new Foo() // 「Foo#constructor()」が出力される
foo.hoge() // 「Foo#hoge()」が出力される
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment