You’ll want to filter the actual array and not the observable wrapped around it.
So you’ll map the content of the Observable (which is an Epic[]) to a filtered Epic.
getEpic(id: string): Observable<Epic> {
return this.getEpics()
.map(epics => epics.filter(epic => epic.id === id)[0]);
}
Then afterwards you can subscribe to getEpic and do whatever you want with it.