data = [{'info':'success'},{'info':'fail'}];
public getResults(page: Page,data:any[]): Observable<PagedData<CorporateEmployee>> {
return Observable.of(data).map(data => this.getPagedData(page,data));
}
In the above code what is the purpose of the Observable.of
operator?