---
title: "contains(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webbackforwardlist/contains(_:)"
---

# contains(_:)

Returns a Boolean value indicating whether the back-forward list contains the specified item.

## Declaration

```swift
func contains(_ item: WebHistoryItem!) -> Bool
```

## Parameters

- `item`: The item to find in the back-forward list.

## Return Value

Return Value true if the specified item is in the back-forward list; otherwise, false.

## See Also

### Querying the Back-Forward List

- [backItem](webkit/webbackforwardlist/backitem.md)
- [backListCount](webkit/webbackforwardlist/backlistcount.md)
- [back(withLimit:)](webkit/webbackforwardlist/back(withlimit:).md)
- [currentItem](webkit/webbackforwardlist/currentitem.md)
- [item(at:)](webkit/webbackforwardlist/item(at:).md)
- [forwardItem](webkit/webbackforwardlist/forwarditem.md)
- [forwardListCount](webkit/webbackforwardlist/forwardlistcount.md)
- [forwardList(withLimit:)](webkit/webbackforwardlist/forwardlist(withlimit:).md)
