Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

MaybePieces

MaybePieces: [a[], a, a[]] | 0

Position

Position: "BEFORE" | "SELECTED" | "AFTER"

Functions

SelectList

  • SelectList<a>(before: a[], selected: a, after: a[]): SelectListImpl<a>
  • description

    Wraps call to create new instance of a SelectList

    Type parameters

    • a

    Parameters

    • before: a[]
    • selected: a
    • after: a[]

    Returns SelectListImpl<a>

Private Let mapWithPosition

  • mapWithPosition<A, B>(array: A[], callback: function, position: Position): B[]
  • Type parameters

    • A

    • B

    Parameters

    • array: A[]
    • callback: function
        • (element: A, index?: number, position?: Position): B
        • Parameters

          • element: A
          • Optional index: number
          • Optional position: Position

          Returns B

    • position: Position

    Returns B[]

Private Let selectHelp

  • selectHelp<A>(predicateFn: function, before: A[], selected: A, after: A[]): MaybePieces<A>
  • Type parameters

    • A

    Parameters

    • predicateFn: function
        • (element: A): boolean
        • Parameters

          • element: A

          Returns boolean

    • before: A[]
    • selected: A
    • after: A[]

    Returns MaybePieces<A>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc