Skip to main content

one

Assert that exactly one element in an array satisfies the condition.


Examples

Ensure exactly one default route exists:

routes.one(destination == "0.0.0.0/0")