function.js

1.3.0 • Public • Published

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.

Package Sidebar

Install

npm i function.js

Weekly Downloads

4

Version

1.3.0

License

ISC

Last publish

Collaborators

  • stefanwimmer128