node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

functional-lite

@version    0.6.0
@date       2016-07-08
@stability  2 - Unstable

Functional – Build Coverage

Experimental Functional stuff.

Examples

Extends String and Function with "every filter each map fold foldr some"

// _ is default first argument name when no arguments defined 
 
"_ + 1".map([1, 2, 3])
// is equal to 
"_ -> _ + 1".map([1, 2, 3])
// is equal to 
[1, 2, 3].map(Fn("_ + 1"))
// [2, 3, 4] 

Browser Support

It should work IE6 and up but automated testing is currently broken.

External links

Licence

Copyright (c) 2013-2016 Lauri Rooden <lauri@rooden.ee>
The MIT License