---
title: item
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/playlist/1627377-item
---

# item

Returns the media item located in the indicated array index.

## Declaration

```data
MediaItem item(
    in int index
);
```

## Parameters

- `index`: The array index for the MediaItem.

## Return Value

Return Value The MediaItem object located in the designated index location. This method returns null if the index is out of range.

## See Also

### Modifying the Playlist

- [length](tvmljs/playlist/1627327-length.md)
- [Playlist](tvmljs/playlist/1627336-playlist.md)
- [pop](tvmljs/playlist/1627310-pop.md)
- [push](tvmljs/playlist/1627433-push.md)
- [splice](tvmljs/playlist/1627367-splice.md)
