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

Function mapToArr

  • mapToArr<TVal, TKey, TOut>(map): TVal[]
  • Get the values of a Map as an Array

    Type Parameters

    • TVal
    • TKey
    • TOut

    Parameters

    • map: ReadonlyMap<TKey, TVal>

    Returns TVal[]

    • Defined in helpers/arrays.ts:7
  • mapToArr<TVal, TKey, TOut>(map, mapFn): TOut[]
  • Map a Map to an Array

    Type Parameters

    • TVal
    • TKey
    • TOut

    Parameters

    • map: ReadonlyMap<TKey, TVal>
    • mapFn: ((val: TVal, key: TKey) => TOut)
        • (val, key): TOut
        • Parameters

          • val: TVal
          • key: TKey

          Returns TOut

    Returns TOut[]

    • Defined in helpers/arrays.ts:14

Settings

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

Generated using TypeDoc