Function toHashMap

  • Creates a lookup map (HashMap) for a given array of objects, whereby the objects can be looked up by a key, representing a property value that is deemed to be unique

    Returns

    HashMap

    Type Parameters

    • T

    Parameters

    • data: T[]
    • uniqueIdProp: string = 'id'

    Returns HashMap<T>

Generated using TypeDoc