Use JavaScript functionally pure, you must!
-
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
andreduce
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 likeimmutable
. -
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
andPromise
tackle two of Javascript's gnarliest problems: error-handling and asyncronicity.
Loda is totally experimental. No guarantees are made to it working correctly, however specs/ illustrates Loda's test coverage.
Use Github issues for requests.
Pull requests actively welcomed.