npm

or-else
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

||else

Maintainability codecov

code style: prettier versioning: or-release

A set of tools for capturing and maintaining multiple application flows.

Contents

  • Switch works like the ordinary switch: you provide the cases and the default value, it jumps in to the proper case or falls through to the default result. The cases may be matched against a value or with a function.
  • LazySwitch is like the previous Switch but it accepts the value to be matched against provided prefixes in a match method. The cases may be matched against a value or with a function.
  • Either is a monad with a Left and a Right state that can be used for capturing uncommon behaviour or maintaining two flows of application execution at once.

Installation

yarn add or-else

or

npm i -S or-else

Examples

TBD

Readme

Keywords

none

Package Sidebar

Install

npm i or-else

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

19 kB

Total Files

21

Last publish

Collaborators

  • orlovedev