Home Reference Source Repository
import Either from 'stools/src/Either.js'
public class | source

Either

Either

Static Method Summary

Static Public Methods
public static
public static
public static
public static

of(x: Object): Right

Static Public Methods

public static Left(x: Object): Left source

Params:

NameTypeAttributeDescription
x Object

is the value of the Left.

Return:

Left

public static Right(x: Object): Right source

Params:

NameTypeAttributeDescription
x Object

is the value of the Right.

Return:

Right

public static fromNullable(x: Object): Either source

Params:

NameTypeAttributeDescription
x Object

is the value of the Either.

Return:

Either

({Left} or {Right})

public static of(x: Object): Right source

Params:

NameTypeAttributeDescription
x Object

is the value of the Right.

Return:

Right