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
cata(_, g) → {*}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
_ |
Placeholder
|
|
g |
function
|
Returns:
- Type:
-
*
chain(f) → {*}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
f |
function
|
Returns:
- Type:
-
*
getOrElse(f) → {*}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
f |
function
|
Returns:
- Type:
-
*
map(f) → {*}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
f |
function
|
Returns:
- Type:
-
*