SOUTHERNCO\x2mjbyrn 7efe7605b8 Template Upload
2017-05-17 13:45:25 -04:00

13 lines
589 B
TypeScript

import { Observable } from '../Observable';
/**
* Similar to the well known `Array.prototype.map` function, this operator
* applies a projection to each value and emits that projection in the returned observable
*
* <img src="./img/map.png" width="100%">
*
* @param {Function} project the function to create projection
* @param {any} [thisArg] an optional argument to define what `this` is in the project function
* @returns {Observable} a observable of projected values
*/
export declare function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): Observable<R>;