property pattern

A pattern in braces that tests an object's properties, as in kettle is { Price: > 20m }.

In more detail

It can test several properties at once and nest further patterns inside. is { } product matches any non-null value and names it, a shape the course uses to turn a lookup into Ok or NotFound.

Related terms

Taught in

References