Skip to content
generated from orlowdev/template

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

License

Notifications You must be signed in to change notification settings

orlowdev/or-else

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

||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

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published