JSPM

  • Created
  • Published
  • Downloads 201
  • Score
    100M100P100Q85676F
  • License Apache-2.0

Functional programming library for Javascript

Package Exports

  • funfix

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (funfix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Funfix

Travis Coverage Status

Funfix is a library of data types for functional and asynchronous programming in Javascript.

Inspired by Scala, Cats and Monix.

Usage

npm install --save funfix

Features:

  • Option, which is like the "Maybe" monadic type from Haskell
  • Either, for working with values of two possible types
  • Try, for capturing exceptional results and manipulating them as values
  • IEquals interface for structural equality in is
  • Cancelable / BoolCancelable, for describing composable cancellation actions
  • more is coming (e.g. Eval, Task)

See API Docs.

Typescript or Flow?

Funfix supports both Typescript and Flow out of the box.

Projects for usage in combination with Funfix:

  • Immutable.js: a library exposing immutable collections, by Facebook
  • JSVerify: property based testing