@amirsavand/ngx-common - v5.4.0
    Preparing search index...

    Function findItemInList

    • Attempts to find an item in the list of dictionaries with the given property name and value.

      Type Parameters

      Parameters

      • list: T[]

        List to search.

      • itemValue: PK

        Item property value to match.

      • itemKey: keyof T = 'id'

        Item property name to match (default is "id").

      Returns T | undefined

      Item that is found (undefined otherwise).