Home > @i2analyze/notebook-sdk > data > IReadOnlyCollection > map
data.IReadOnlyCollection.map() method
Returns a new collection populated with the results of calling a function on each object.
Signature:
map<U>(callbackfn: (v: V) => U): IReadOnlyCollection<U>;
Introduced: version 1.0
Type Parameters
Parameter | Type | Description |
---|---|---|
U | any | The type of the objects in the new collection. |
Parameters
Parameter | Type | Description |
---|---|---|
callbackfn | (v: V) => U | A function to call on each object in the collection. |
Returns:
The new collection.