@szilanor/stream
    Preparing search index...

    Function sequenceEquals

    • Determines whether two sequences are equal by comparing the elements pairwise.

      Type Parameters

      • T

        Type of items in the source.

      Parameters

      • other: Iterable<T>

        Iterable to compare to the source.

      • equalsFunction: EqualsFunction<T> = ...

        Function to determine if two elements are equal.

      Returns CollectorFunction<T, boolean>

      Collector that returns true if the two sequences are equal, false otherwise.

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