• This method is like _.invert except that the inverted object is generated from the results of running each element of object through iteratee. The corresponding inverted value of each inverted key is an array of keys responsible for generating the inverted value. The iteratee is invoked with one argument: (value).

    Type Parameters

    • T

    Parameters

    • object: undefined | null | Dictionary<T> | NumericDictionary<T>

      The object to invert.

    • Optional interatee: ValueIteratee<T>

      The iteratee invoked per element.

    Returns Dictionary<string[]>

    Returns the new inverted object.

  • Type Parameters

    • T extends object

    Parameters

    • object: undefined | null | T
    • Optional interatee: ValueIteratee<T[keyof T]>

    Returns Dictionary<string[]>

    See

    _.invertBy

Generated using TypeDoc