Options
All
  • Public
  • Public/Protected
  • All
Menu

A DynamicValue reducer returning the input split by a delimiter

example

new SplitValue(new TextValue("a,b,c"),",").onValue(split=>
 parsed[0] === "a" //true
)

Hierarchy

  • SplitValue

Implements

Constructors

constructor

Parameters

  • input: DynamicValue<string>
  • delimiter: string
  • name: string Optional

Returns SplitValue

Properties

__variant__

__variant__: string = "SplitValue"

delimiter

delimiter: string

input

input: DynamicValue<string>

name

name: string | void

Methods

getValue

  • getValue(): Promise<string []>

Returns Promise<string []>

onValue

Parameters

Returns Unsubscriber

Static fromJSON

  • fromJSON(json: object): any

Parameters

  • json: object
    • delimiter: string
    • 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.