Skip to content

Commit

Permalink
Rewrite rule doc
Browse files Browse the repository at this point in the history
  • Loading branch information
steventsao committed Nov 18, 2019
1 parent 62de848 commit f9d1a56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-get-with-default.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# No getWithDefault (no-get-with-default)
# No `getWithDefault` (no-get-with-default)

This rule attempts to catch and prevent the use of `getWithDefault`.

Expand All @@ -8,7 +8,7 @@ Even though the behavior for `getWithDefault` is more defined such that it only
its inconsistency with the native `||` is confusing to many developers who assume otherwise. This rule encourages developers to use
the native `||` operator instead.

In addition, [Nullish Coalescing Operator `??`](https://github.com/tc39/proposal-nullish-coalescing) will land in the JavaScript language soon so developers can enjoy safe property access using native support instead of `getWithDefault`.
In addition, [Nullish Coalescing Operator `??`](https://github.com/tc39/proposal-nullish-coalescing) will land in the JavaScript language soon so developers can leverage safe property access with native support instead of using `getWithDefault`.

This rule **forbids** the following:

Expand Down

0 comments on commit f9d1a56

Please sign in to comment.