• Preparing search index...
  • The search index is not available
@juulsgaard/ts-tools
  • @juulsgaard/ts-tools
  • arrToLookup

Function arrToLookup

  • arrToLookup<TArr, TKey, TVal>(array, getKey): Lookup<TKey, TArr>
  • Create a lookup where each key can map to multiple values

    Type Parameters

    • TArr
    • TKey
    • TVal

    Parameters

    • array: readonly TArr[]
    • getKey: ArrayMapFunc<TArr, TKey>

    Returns Lookup<TKey, TArr>

    • Defined in helpers/lookups.ts:10
  • arrToLookup<TArr, TKey, TVal>(array, getKey, getVal): Lookup<TKey, TVal>
  • Create a lookup where each key can map to multiple values

    Type Parameters

    • TArr
    • TKey
    • TVal

    Parameters

    • array: readonly TArr[]
    • getKey: ArrayMapFunc<TArr, TKey>
    • getVal: ArrayMapFunc<TArr, TVal>

    Returns Lookup<TKey, TVal>

    • Defined in helpers/lookups.ts:18

Settings

Member Visibility
@juulsgaard/ts-tools
  • Loading...

Generated using TypeDoc