Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erikjuhani/fp-utils

Utilities like Option and Result for functional programming in Node / Deno
https://github.com/erikjuhani/fp-utils

deno fp functional-programming nodejs option result utilities

Last synced: 2 months ago
JSON representation

Utilities like Option and Result for functional programming in Node / Deno

Awesome Lists containing this project

README

        



fp-utils  


Functional utility library for TypeScript    

## Background

I have been exploring ways to represent Option and Result types in TypeScript
that would be intuitive to use and have idiomatic functionality, similar to how
promises and arrays are constructed and chained. This is the result of these
explorations—think of it as lodash, but with minimalistic utilities for
functional programming.

Fair warning, even though these concepts can be used without much knowledge
about functional programming. I wholeheartedly recommend to understand the
basics of functional programming before using these utilities.

## Modules

- [Option](/option/README.md)
- [Result](/result/README.md)