• The opposite of _.mapValues; this method creates an object with the same values as object and keys generated by running each own enumerable property of object through iteratee.

    Type Parameters

    • T

    Parameters

    • object: undefined | null | List<T>

      The object to iterate over.

    • Optionaliteratee: ListIteratee<T>

      The function invoked per iteration.

    Returns Dictionary<T>

    Returns the new mapped object.

  • Type Parameters

    • T extends object

    Parameters

    • object: undefined | null | T
    • Optionaliteratee: ObjectIteratee<T>

    Returns Dictionary<T[keyof T]>

    _.mapKeys