Options
All
  • Public
  • Public/Protected
  • All
Menu

Idea of this function is from Java Optional This function checks value to be non null or undefined.

see

https://pavel-surinin.github.io/declarativejs/#/?id=optional

Type parameters

  • T

Hierarchy

  • OptionalInterface

Index

Methods

filter

get

  • get(): NonNullable<T>

ifAbsent

  • ifAbsent(consumer: function): void

ifPresent

  • ifPresent(consumer: function): void

isAbsent

  • isAbsent(): boolean

isPresent

  • isPresent(): boolean

map

orElse

  • orElse(value: T): T

orElseGet

  • orElseGet(supplier: function): T

orElseThrow

  • orElseThrow(errorMessage?: undefined | string): T | never

toArray

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc