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

Maybe

Maybe

Static Method Summary

Static Public Methods
public static

None(): None

public static
public static
public static

of(x: Object): Some

Static Public Methods

public static None(): None source

Return:

None

public static Some(x: Object): Some source

Params:

NameTypeAttributeDescription
x Object

is the value of the Some.

Return:

Some

public static fromNullable(x: Object): Maybe source

Params:

NameTypeAttributeDescription
x Object

is the value of the Maybe.

Return:

Maybe

({Some} or {None})

public static of(x: Object): Some source

Params:

NameTypeAttributeDescription
x Object

is the value of the Some.

Return:

Some