Function iterKCombinations

  • K-combinations

    Type Parameters

    • T

    Parameters

    • set: T[]

      Array of objects of any type. They are treated as unique.

    • k: number

      Size of combinations to search for.

    Returns Generator<T[], number, undefined>

    Generator of found combinations, size of a combination is k.