ts-helpers
    Preparing search index...

    Function toIndexedList

    • Convert an array to object using a specified key

      Type Parameters

      • T extends Record<string, unknown>

      Parameters

      • source: T[]

        Source array which contains objects

      • key: string

        Key of the objects in the source array

      Returns Record<string, T>