property pattern
A pattern that checks an object's properties, like { Age: >= 18 }.
A property pattern matches when the listed properties match nested patterns; positional patterns match deconstructed components.
Examples
order is { Total: > 100, Country: "PT" }checks two properties of one order.
See also