Contents

contains(_:)

Returns a Boolean value indicating whether the decoder contains a value associated with the given key.

Declaration

func contains(_ key: Self.Key) -> Bool

Parameters

  • key:

    The key to search for.

Return Value

Whether the Decoder has an entry for the given key.

Discussion

The value associated with key may be a null value as appropriate for the data format.