Pure functional programming library (Work in progress -- use Ramda or Sanctuary while I build this out)
$ npm install fpure --save
Run the specs
$ npm test
const fp = require('fpure');
fp.compose(fp.multiply(4), fp.add(3))(5); // 32
fp.compose(fp.add(3), fp.multiply(4))(5); // 23
Number → Number
expect(add(4)(5)).toBe(9);
expect(add('4')('5')).toBe('45');
expect(add(4)('5')).toBe('45');
expect(add('4')(5)).toBe('45');
Number → Number
expect(subtract(8)(5)).toBe(3);
expect(subtract(5)(8)).toBe(-3);
Number → Number
expect(multiply(4)(5)).toBe(20);