core3-utils

@wixc3/common on Github

Home > @wixc3/common > map

map() function

Map iterable elements

Signature:

export declare function map<S, T>(iterable: Nullable<Iterable<S>>, mapFn: Mapping<S, T>): Iterable<T>;

Parameters

Parameter Type Description
iterable [Nullable](/core3-utils/common.nullable.html)<Iterable<S>>
mapFn [Mapping](/core3-utils/common.mapping.html)<S, T>

Returns:

Iterable<T>