Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

Const toIndexedList

  • toIndexedList<T>(source: T [], key: string): Record<string, T>

Convert an array to object using a specified key

Type parameters

  • T

Parameters

  • source: T []

    Source array which contains objects

  • key: string

    Key of the objects in the source array

Returns Record<string, T>

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.