i2 Notebook SDK
Search results for

    Show/hide table of contents

    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:

    IReadOnlyCollection<U>

    The new collection.

    In this article
    Back to top © N. Harris Computer Corporation