Takaro - v0.4.11
    Preparing search index...

    Function mapKeys

    • 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: List<T> | null | undefined

        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: T | null | undefined
      • Optionaliteratee: ObjectIteratee<T>

      Returns Dictionary<T[keyof T]>

      _.mapKeys