1.0.0 • Published 8 years ago
lb-f
Licence
—
Version
1.0.0
Deps
1
Vulns
0
Weekly
0
lb-f
A collection of functional programming functions
Installation
npm i lb-f
Usage
// ES5
const {curry} = require('lb-f')
// ES2016+
import {curry} from 'lb-f'
// create a standard function
const add = (a + b) => a + b
// wrap it in a curry
const sum = curry(add)
// now you can call argument by argument
sum(1, 2) // 3
sum(1)(2) // 3