@szilanor/stream
    Preparing search index...

    Function sequenceEqualsAsync

    • Returns a collector that returns true if the Iterable is equal to the other Iterable based on the equals function.

      Type Parameters

      • T

        Type of items in the source.

      Parameters

      • other: Iterable<T>

        The other Iterable to compare to.

      • equalsFunction: EqualsFunction<T> = ...

        A function that defines the sort order of the elements.

      Returns AsyncCollectorFunction<T, boolean>

      Collector that returns true if the Iterable is equal to the other Iterable based on the equals function.

      const result = sequenceEqualsAsync([1, 2, 3])([1, 2, 3]);
      console.log(result); // true