@shopify/cli-kit
    Preparing search index...

    Function mapValues

    • 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: T | null | undefined

        The object to iterate over.

      • callback: ObjectIterator<T, TResult>

        The function invoked per iteration.

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

      Returns the new mapped object.