Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

map

deprecated
@deprecated

Use a closure instead of a thisArg. Signatures accepting a thisArg will be removed in v8.

function map<T, R>(project: (value: T, index: number) => R): OperatorFunction<T, R>;
function map<T, R, A>(project: (
this: A,
value: T,
index: number,
) => R
, thisArg: A): OperatorFunction<T, R>;
§
map<T, R>(project: (value: T, index: number) => R): OperatorFunction<T, R>
[src]

§Type Parameters

§Parameters

§
project: (value: T, index: number) => R
[src]

§Return Type

§
map<T, R, A>(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction<T, R>
[src]

§Type Parameters

§Parameters

§
project: (this: A, value: T, index: number) => R
[src]
§
thisArg: A
[src]

§Return Type