▲ 6 ▼ Ternary-based pattern matching in JS (blog.kaki87.net) submitted 1 year ago by KaKi87@jlai.lu to c/javascript@programming.dev 6 comments fedilink hide all child comments
[–] KaKi87@jlai.lu [S] 1 point 1 year ago Actual pattern-matching allows matching on the structure of a data type That's a condition, so it can fit in a ternary. permalink fedilink source parent