this post was submitted on 19 Jun 2025
6 points (100.0% liked)

JavaScript

2418 readers
7 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 days ago

Actual pattern-matching allows matching on the structure of a data type

That's a condition, so it can fit in a ternary.