Applies a given project function to each value emitted by the source Observable, and emits the resulting values as an Observable.
// Custom observable
const urlString = '/api/courses';
// Run our observable
const http$ = CreateHttpObservable(urlString);
// Let's map our results
const courses$ = http$.pipe(
map(res => Object.values(res.payload))
);
// Observable subscription
courses$.subscribe(
courses => console.log(courses),
noop,
() => console.log('Completed')
);