Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
221 B
1
Indexable
Never
getGoalById(id:string):Observable<any> {
    return this.goalsCollection()
    .pipe(
      map(response => {
        response = response.filter((v:any) => v.id === id);
        return response;
      })
    )
  }