Package detail

@jasonsbarr/functional-core

jasonsbarr31MIT0.11.0

A function-based version of the JavaScript standard library plus additional awesome functions

functional programming, functions

readme

@jasonsbarr/core

Core functions and types for functional programming in JavaScript, including the ability to create your own tagged union types and a functional, largely curried interface to the JavaScript standard library.

What's Included

Included function categories:

  • Array
  • Boolean
  • Helpers
  • Lambda
  • Math
  • Number
  • Object
  • Predicates
  • RegExp
  • String
  • Symbol
  • Type conversion
  • Type creation
  • Type matching

Included types:

  • Either
  • Future
  • Id
  • Option
  • Record
  • Result

Also includes a selection of type classes that include default implementation of methods like map and chain you can use to speed along creation of your own types.

Documentation

Documentation