curry-named
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "curry-named", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Curry for named arguments", | ||
@@ -9,2 +9,6 @@ "main": "index.js", | ||
}, | ||
"files": [ | ||
"index.js", | ||
"README.md" | ||
], | ||
"repository": { | ||
@@ -11,0 +15,0 @@ "type": "git", |
# curry-named | ||
Curry for named arguments | ||
Curry for named arguments. | ||
@@ -18,2 +18,16 @@ ## Usage | ||
### Accepts optional arguments | ||
```js | ||
var curry = require('curry-named') | ||
const foo = curry( | ||
['a', 'c'], | ||
({a, b, c}) => | ||
a + b + c) | ||
foo({ a: 1 })({ b: 2, c: 3}) // 6 | ||
foo({ a: 1 })({ c: 3 }) // 4 | ||
``` | ||
### Partial application works too | ||
@@ -32,1 +46,5 @@ | ||
- [named-curry](https://github.com/rjmk/named-curry) | ||
## License | ||
MIT [http://gunar.mit-license.org]() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49
2256
3
20