angular subscribe

JavaScript
return this.http.get('url' + params).pipe(
        map((response: any) => {
          //adjust data before return
          return response; 
        })
      );
// Will return an observable that one can subscribe off ofangular subscribe
Source

Also in JavaScript: