summaryrefslogtreecommitdiff
path: root/docs/examples/testing_if_main.md
diff options
context:
space:
mode:
authorChris Knight <cknight1234@gmail.com>2020-09-12 13:03:18 +0100
committerGitHub <noreply@github.com>2020-09-12 08:03:18 -0400
commit95db3247485b2d1ed553c98e2231379e58a0ace2 (patch)
treec6f5153101d77d2ce9342ea76fc69815ec51ccd8 /docs/examples/testing_if_main.md
parent10fbfcbc79eb50cb7669b4aaf67f957d97d8d93b (diff)
doc: improve Examples (#7428)
Diffstat (limited to 'docs/examples/testing_if_main.md')
-rw-r--r--docs/examples/testing_if_main.md10
1 files changed, 0 insertions, 10 deletions
diff --git a/docs/examples/testing_if_main.md b/docs/examples/testing_if_main.md
deleted file mode 100644
index 67be70339..000000000
--- a/docs/examples/testing_if_main.md
+++ /dev/null
@@ -1,10 +0,0 @@
-## Testing if current file is the main program
-
-To test if the current script has been executed as the main input to the program
-check `import.meta.main`.
-
-```ts
-if (import.meta.main) {
- console.log("main");
-}
-```