1.3.0 • Published 8 years ago
function.js v1.3.0
function.js
Functional programming just easier - for npm and bower
How to use?
Using npm
npm i -S function.js
const fn = require("function.js");
Using bower
bower i -S function.js
<script src="bower_components/function.js/build/function.js"></script>
Start coding
const sum = (a, b, c, d) => a + b + c + d;
const curried = fn.curry(sum);
const uncurried = fn.uncurry(curried);
curried(1)(2)(3)(4); // 10
uncurried(1, 2, 3, 4); // 10
Complete documentation can be found here.