• Get unique values from an Array based on the specified function which returns the key or object making the item unique

    Type Parameters

    • T

    • K

    • M = T

    Parameters

    • itr: Iterable<T>
    • Optional uniqueKeyFunc: ((item) => K)

      Filter that determines uniqueness of an item

        • (item): K
        • Parameters

          • item: T

          Returns K

    • Optional mapFunc: ((item) => M)
        • (item): M
        • Parameters

          • item: T

          Returns M

    Returns Generator<M>