Skip to content

Commit

Permalink
javascript: Add is [not] nullish for loose null check
Browse files Browse the repository at this point in the history
These check whether a LHS is nullish, i.e. null or undefined.
  • Loading branch information
auscompgeek authored Sep 3, 2023
1 parent 9fafdc1 commit 8aeed40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lang/javascript/javascript.talon
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ settings():

(op | is) strict equal: " === "
(op | is) strict not equal: " !== "
is nullish: " == null"
is not nullish: " != null"
op null else: " ?? "

state const: "const "
Expand Down

0 comments on commit 8aeed40

Please sign in to comment.