Members
type :String
Properties:
Name | Type | Description |
---|---|---|
type |
String
|
Returns the string 'Left' for all Either objects |
- Source:
Type:
-
String
Example
const m = Either.of([[1,2],[2,3],[4,5]])
m.type === 'Left'
Methods
cata(f, _) → {*}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
f |
function
|
|
_ |
Placeholder
|
Returns:
- Type:
-
*
getOrElse(a) → {*}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
a |
*
|
Returns:
- Type:
-
*