ts-iterable-functions
    Preparing search index...

    Function sequenceEqualConst

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

      Curried version of _sequenceEqual.

      Type Parameters

      • T

        Element type produced by both iterables.

      Parameters

      • 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 (src: Iterable) => 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