Constructors
constructor
Parameters
-
input: DynamicValue<object>
-
index: string | number
-
name: string Optional
Properties
__variant__
__variant__: string = "IndexValue"
index
index: string | number
Methods
getValue
Returns Promise<any>
Static fromJSON
- fromJSON(json: object): any
Parameters
-
json: object
-
index: string | number
-
input: any
-
Optional name?: string
Returns any
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 )