Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Shortest

Shortest<L, L1>: L extends unknown ? L1 extends unknown ? object[Has<keyof L1, keyof L>] : never : never

Get the shortest List of L & L1 (L has priority if both lengths are equal)

Type parameters

  • L: List

    to compare length

  • L1: List

    to compare length

returns

L | L1

example


  • 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.