Function ArrayFinder

  • Creates a proxy object that allows accessing elements in the array using a specified property as the key.

    Type Parameters

    • T

    • K extends string | number | symbol

    Parameters

    • array: T[]

      The array of elements.

    • property: K

      The property to be used as the key for accessing elements in the array.

    Returns ArrayToObject<T, K>

    A proxy object with keys based on the specified property and values of type T.

    Typeparam

    T - The type of elements in the array.

    Typeparam

    K - The key of the property to be used as the key for accessing elements in the array.

Generated using TypeDoc