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

    Function getDictFromList

    • Takes a list and turns it into a dict mapped to given item keys.

      Type Parameters

      Parameters

      • list: T[]

        List to turn into a dict.

      • key: keyof T = 'id'

        Key to map items to the dict.

      Returns Record<PK, T>

      Generated dict.