Wrapper-Types
Installation
npm install wrapper-types
Usage
Require the whole module:
const wrappers =
Require types individually:
const IO Identity =
Identity
const identity = const identity = Identity
Methods: map, chain, ap, extend, extract, equals, of, is, toString
IO
const IO = const io = IO
Methods: map, chain, ap, run, of, is, toString
Maybe
const Maybe = const maybe = Maybe
Methods: map, chain, ap, extend, extract, isNothing, of, is, toString
Task
const Task = const task =
Methods: map, chain, ap, fork, of, is, toString
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.