• Preparing search index...
  • The search index is not available
Vertex Typescript SDK Documentation
  • Documentation
  • Vertex Utils
  • mapValues

Function mapValues

  • mapValues<TKey, TValue, TNewValue>(obj, mapFn): Record<TKey, TNewValue>
  • Map values of an object given mapFn. Avoids needing to pull in lodash

    Type Parameters

    • TKey extends string | number | symbol
    • TValue
    • TNewValue

    Parameters

    • obj: Record<TKey, TValue>
    • mapFn: ((value: TValue, key: TKey, index: number) => TNewValue)
        • (value, key, index): TNewValue
        • Parameters

          • value: TValue
          • key: TKey
          • index: number

          Returns TNewValue

    Returns Record<TKey, TNewValue>

    • Defined in mapValues.ts:4

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc