Options
All
  • Public
  • Public/Protected
  • All
Menu

A DynamicValue reducer returning the value at an index

example

new IndexValue(new SplitValue(new TextValue("a,b,c"),","),0).onValue(val=>
 val === "a" //true
)

Type parameters

  • V

Hierarchy

  • IndexValue

Implements

Constructors

Properties

Methods

Constructors

constructor

Parameters

  • input: DynamicValue<object>
  • index: string | number
  • name: string Optional

Returns IndexValue

Properties

__variant__

__variant__: string = "IndexValue"

index

index: string | number

input

input: DynamicValue<object>

name

name: string | void

Methods

getValue

  • getValue(): Promise<any>

Returns Promise<any>

onValue

Parameters

Returns Unsubscriber

Static fromJSON

  • fromJSON(json: object): any

Parameters

  • json: object
    • index: string | number
    • input: any
    • Optional name?: string

Returns any

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