Either
Either is an object that represents a choice between two possible objects of potentially two different types. One common use for something
like this is to wrap the execution of a function that can throw an exception such that the exception is bound into an
Either > Result,Exception and thereby remove the need to a try...catch block.
Import
-
npm i @leyyo/eitherStandards
- Language:
TS- Eslint:
Yes- Static Code Analysis:
Yes IntelliJ Code Inspections- DDD - Document Driven:
Yes- DDD - Domain Driven:
Yes- EDD - Exception Driven:
Yes- TDD - Test Driven:
Yes- LDD - Log Driven:
Yes- 12FA - 12 Factor-App:
50% PartiallyDependencies
TODO
-
rimraf clears dist-
@leyyo/fqn full qualified name-
@leyyo/logger---
$3
- Mustafa Yelmer
- mustafayelmer(at)gmail.com
-
2025-01-10