Node.contains

Determine if a collection contains specified value.

If the node is a sequence, check if it contains the specified value. If it's a mapping, check if it has a value that matches specified value.

struct Node
const @safe
bool
contains
(
T
)
(
T rhs
)

Return Value

Type: bool

true if rhs was found, false otherwise.

Throws

NodeException if the node is not a collection.

Meta