@s-libs/micro-dash
    Preparing search index...

    Function mapValues

    • Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of object thru iteratee.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,189 bytes
      • Micro-dash: 120 bytes

      Type Parameters

      • A extends readonly any[]
      • O

      Parameters

      • array: Nil | A
      • iteratee: (item: A[number], index: number) => O

      Returns Record<number, O>

    • Creates an object with the same keys as object and values generated by running each own enumerable string keyed property of object thru iteratee.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 16,189 bytes
      • Micro-dash: 120 bytes

      Type Parameters

      • T
      • O

      Parameters

      • object: T
      • iteratee: ObjectIteratee<NonNullable<T>, O>

      Returns IfCouldBe<T, Nil, {}> | Record<keyof NonNullable<T>, O>