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

Some

Extends:

Monad → Some

Some

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public
public
public

Public Constructors

public constructor(x: Object): Some source

Params:

NameTypeAttributeDescription
x Object

is the value of the Some.

Return:

Some

Public Methods

public getOrElse(): Object source

Return:

Object

public isNone(): boolean source

Return:

boolean

public isSome(): boolean source

Return:

boolean

public map(fn: function): Maybe source

Params:

NameTypeAttributeDescription
fn function

is a function.

Return:

Maybe

({Some} or {None})