Skip to content

Commit e5ecfef

Browse files
docs: Add function call example for no-undefined (#16712)
* docs: Add Function Call Example Add a function call example on how to skip parameters the safe way * Update docs/src/rules/no-undefined.md thx for the spelling fixes Co-authored-by: Amaresh S M <[email protected]> * Update docs/src/rules/no-undefined.md thx for the spelling fixes Co-authored-by: Amaresh S M <[email protected]> * Remove Function Def Remove the function definition to reduce docs complexity. * Simplify wording Simplify the wording of the comments. * No comments it is after much deliberation, the committee has decreed that there shall be no comments on the new examples! Co-authored-by: Amaresh S M <[email protected]>
1 parent a3262f0 commit e5ecfef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/src/rules/no-undefined.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ if (foo === undefined) {
5757
function foo(undefined) {
5858
// ...
5959
}
60+
61+
bar(undefined, "lorem");
6062
```
6163

6264
:::
@@ -77,6 +79,8 @@ if (typeof foo === "undefined") {
7779
}
7880

7981
global.undefined = "foo";
82+
83+
bar(void 0, "lorem");
8084
```
8185

8286
:::

0 commit comments

Comments
 (0)