ts-iterable-functions
    Preparing search index...

    Function isSupersetOfConst

    • Determines whether the source iterable contains every element from the comparison sequence.

      Curried version of _isSupersetOf.

      Type Parameters

      • T

        Element type produced by both iterables.

      Parameters

      • seq: Iterable<T>

        Iterable whose contents are required to appear in src.

      • setFactory: SetFactory<T> = ...

        Optional factory supplying the set used for membership checks.

      Returns (src: Iterable) => boolean

      true when src is a superset of seq, otherwise false.

      Error Rethrows any error thrown by setFactory.

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

      or using the curried version:

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