getItem(_:)

Returns an item corresponding to the given key(s) and throws an error if it fails.

Declaration

func getItem(
    _ key: (
        any Parsable
    )...
) throws -> Object

Parameters

  • key: A key, which becomes a tuple if multiple values are passed.

Returns

The item corresponding to the key.