• Creates an object with the same keys as object and values generated by running each own enumerable property of object through iteratee. The iteratee function is invoked with three arguments: (value, key, object).

    Type Parameters

    • TResult

    Parameters

    • obj: undefined | null | string
    • callback: StringIterator<TResult>

    Returns NumericDictionary<TResult>

    Returns the new mapped object.

  • Type Parameters

    • T extends object
    • TResult

    Parameters

    • obj: undefined | null | T
    • callback: ObjectIterator<T, TResult>

    Returns {
        [P in string | number | symbol]: TResult
    }

    _.mapValues

  • Type Parameters

    • T

    Parameters

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

    Returns Dictionary<boolean>

    _.mapValues

  • Type Parameters

    • T extends object

    Parameters

    • obj: undefined | null | T
    • iteratee: object

    Returns {
        [P in string | number | symbol]: boolean
    }

    _.mapValues

  • Type Parameters

    • T
    • TKey extends string | number | symbol

    Parameters

    • obj:
          | undefined
          | null
          | Dictionary<T>
          | NumericDictionary<T>
    • iteratee: TKey

    Returns Dictionary<T[TKey]>

    _.mapValues

  • Type Parameters

    • T

    Parameters

    • obj:
          | undefined
          | null
          | Dictionary<T>
          | NumericDictionary<T>
    • iteratee: string

    Returns Dictionary<any>

    _.mapValues

  • Type Parameters

    • T extends object

    Parameters

    • obj: undefined | null | T
    • iteratee: string

    Returns {
        [P in string | number | symbol]: any
    }

    _.mapValues

  • Parameters

    • obj: undefined | null | string

    Returns NumericDictionary<string>

    _.mapValues

  • Type Parameters

    • T

    Parameters

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

    Returns Dictionary<T>

    _.mapValues

  • Type Parameters

    • T extends object

    Parameters

    • obj: T

    Returns T

    _.mapValues

  • Type Parameters

    • T extends object

    Parameters

    • obj: undefined | null | T

    Returns Partial<T>

    _.mapValues