Constructors
constructor
Parameters
-
input: DynamicValue<string>
-
delimiter: string
-
name: string Optional
Properties
__variant__
__variant__: string = "SplitValue"
delimiter
delimiter: string
Methods
getValue
- getValue(): Promise<string []>
Returns Promise<string []>
Static fromJSON
- fromJSON(json: object): any
Parameters
-
json: object
-
delimiter: string
-
input: any
-
Optional name?: string
Returns any
A DynamicValue reducer returning the input split by a delimiter
example
new SplitValue(new TextValue("a,b,c"),",").onValue(split=> parsed[0] === "a" //true )