A standard library for functional programming in JavaScript
$ npm install --save folktale

Why Folktale?


Purity makes it easy to create new functionality by just putting smaller components together, and Folktale's combinators make it easier.

Better error handling

throw and try/catch are hard to reason about. Folktale's Maybe and Result support abstracting over errors, and simplify reasoning.

Safer concurrency

Folktale provides Task, a way of declaring and combining asynchronous actions that supports automatic resource management.

Start using functional programming to simplify your code today.

Get started