Skip to content

Commit

Permalink
docs: Add function call example for no-undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
kecrily committed Feb 19, 2023
1 parent 7a7a33a commit a7afaf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/no-undefined.md
Expand Up @@ -56,6 +56,8 @@ if (foo === undefined) {
function foo(undefined) {
// ...
}

bar(undefined, "lorem");
```

:::
Expand All @@ -76,6 +78,8 @@ if (typeof foo === "undefined") {
}

global.undefined = "foo";

bar(void 0, "lorem");
```

:::
Expand Down

0 comments on commit a7afaf9

Please sign in to comment.