Perseus
    Preparing search index...
    • Maps an object to an object

      mapObject({a: '1', b: '2'}, (value, key) => { return value + 1; }); {a: 2, b: 3}

      Type Parameters

      • K extends string
      • V
      • U

      Parameters

      • obj: Record<K, V>
      • lambda: (arg1: V, arg2: K) => U

      Returns Record<K, U>