---
title: "object(at:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsfetchedresultscontroller/object(at:)"
---

# object(at:)

Returns the object at the given index path in the fetch results.

## Declaration

```swift
func object(at indexPath: IndexPath) -> ResultType
```

## Parameters

- `indexPath`: An index path in the fetch results. If indexPath does not describe a valid index path in the fetch results, an exception is raised.

## Return Value

Return Value The object at a given index path in the fetch results.

## See Also

### Accessing Results

- [fetchedObjects](coredata/nsfetchedresultscontroller/fetchedobjects.md)
- [indexPath(forObject:)](coredata/nsfetchedresultscontroller/indexpath(forobject:).md)
