loda

0.1.3 • Public • Published

Use JavaScript functionally pure, you must!

Core concepts

  • Designed to be curried, all loda functions are. Last, most-significant arguments come. Yes, hmmm.

  • Kitchen sink Loda is not. Minimal functional toolkit, it is. Build complex functionality from it, you can.

  • Sequence comprehensions like map and reduce operate on ES6 Iterables, and not Arrays or Objects. This makes Loda compatible with anything that can be iterated including not just Arrays and Objects, but the ES6 collections Map and Set, Strings, arguments objects, and third-party data structures like immutable.

  • Sequence comprehensions return unfulfilled Iterables. This makes them lazy, allowing for performant chained operations and allows them to reify to any Array, Object or any kind of data structure.

  • Monads Maybe and Promise tackle two of Javascript's gnarliest problems: error-handling and asyncronicity.

Disclaimer

Loda is totally experimental. No guarantees are made to it working correctly, however specs/ illustrates Loda's test coverage.

Contribution

Use Github issues for requests.

Pull requests actively welcomed.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    3
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i loda

Weekly Downloads

3

Version

0.1.3

License

BSD

Last publish

Collaborators

  • leebyron