i2 Notebook SDK
Search results for

    Show/hide table of contents

    Home > @i2analyze/notebook-sdk > data > IReadOnlyCollection > some

    data.IReadOnlyCollection.some() method

    Tests whether at least one object in the collection satisfies a predicate.

    Signature:

    some(predicate: (v: V) => boolean): boolean;
    

    Introduced: version 1.0

    Parameters

    Parameter Type Description
    predicate (v: V) => boolean A predicate function to apply to each object.

    Returns:

    boolean

    true if the predicate is satisfied for at least one object; false otherwise (or if the collection is empty).

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