Right

Right

Right

Constructor

Source:
Parameters:
Name Type Description
val
Returns:
Type:
Right

Members

type :String

Properties:
Name Type Description
type String Returns the string 'Right' for all Either objects
Source:
Type:
  • String
Example
const m =  Either.of([[1,2],[2,3],[4,5]])
m.type === 'Right'

Methods

ap(a) → {Right}

Source:
Parameters:
Name Type Description
a
Returns:
Type:
Right

cata(_, g) → {*}

Source:
Parameters:
Name Type Description
_ Placeholder
g function
Returns:
Type:
*

chain(f) → {*}

Source:
Parameters:
Name Type Description
f function
Returns:
Type:
*

get() → {*}

Source:
Returns:
Type:
*

getOrElse(f) → {*}

Source:
Parameters:
Name Type Description
f function
Returns:
Type:
*

isLeft() → {boolean}

Source:
Returns:
Type:
boolean

isRight() → {boolean}

Source:
Returns:
Type:
boolean

map(f) → {*}

Source:
Parameters:
Name Type Description
f function
Returns:
Type:
*

toString() → {string}

Source:
Returns:
Type:
string