interface CollectionComparision {
    allAre(selector: string): boolean;
    allAreNeighbors(eles: CollectionArgument): boolean;
    allAreNeighbours(eles: CollectionArgument): boolean;
    anySame(eles: CollectionArgument): boolean;
    contains(eles: CollectionArgument): boolean;
    every(test: ((ele: CollectionArgument, i: number, eles: CollectionArgument) => boolean), thisArg?: any): boolean;
    has(eles: CollectionArgument): boolean;
    is(selector: string): boolean;
    same(eles: CollectionArgument): boolean;
    some(test: ((ele: CollectionArgument, i: number, eles: CollectionArgument) => boolean), thisArg?: any): boolean;
}

Hierarchy (view full)

Methods

  • Determine whether all elements in this collection satisfy the specified test function.

    Parameters

    • test: ((ele: CollectionArgument, i: number, eles: CollectionArgument) => boolean)

      The test function that returns truthy values for elements that satisfy the test and falsey values for elements that do not satisfy the test. ele - The current element. i - The index of the current element. eles - The collection of elements being tested.

    • OptionalthisArg: any

      [optional] The value for this within the test function.

    Returns boolean

  • Determine whether any element in this collection satisfies the specified test function.

    Parameters

    • test: ((ele: CollectionArgument, i: number, eles: CollectionArgument) => boolean)

      The test function that returns truthy values for elements that satisfy the test and falsey values for elements that do not satisfy the test. ele - The current element. i - The index of the current element. eles - The collection of elements being tested.

    • OptionalthisArg: any

      [optional] The value for this within the test function.

    Returns boolean