• 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

    • T extends object
    • TResult

    Parameters

    • source: undefined | null | T

      The object to iterate over.

    • callback: ObjectIterator<T, TResult>

      The function invoked per iteration.

    Returns {
        [P in keyof T]: TResult
    }

    Returns the new mapped object.