ts-iterable-functions
    Preparing search index...

    Function _sequenceEqual

    • Determines whether the source iterable and the comparison iterable yield equal elements in order.

      Type Parameters

      • T

        Element type produced by both iterables.

      Parameters

      • src: Iterable<T>

        Source iterable to evaluate.

      • seq: Iterable<T>

        Second iterable whose values are compared against the source.

      • OptionalequalityComparer: (a: T | undefined, b: T | undefined) => boolean

        Optional comparer invoked for each pair of elements; defaults to strict equality.

      Returns boolean

      true when both iterables produce the same number of elements and each pair matches under the comparer.

      Error Rethrows any error thrown by equalityComparer.

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

      or using the curried version:

      const same = pipeInto(
      [1, 2, 3],
      sequenceEqual([1, 2, 3])
      );
      console.log(same); // true