i2 Notebook SDK
Search results for

    Show/hide table of contents

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

    data.IReadOnlyCollection.every() method

    Tests whether all objects in the collection satisfy a predicate.

    Signature:

    every(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 all objects (or the collection is empty); false otherwise.

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