unlimited-curry
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "unlimited-curry", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Unlimited curry", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -79,1 +79,31 @@ <!--- destination qa rewrite begin --> | ||
``` | ||
## split call example | ||
This few lines also comes from the test suite, but you will get how you can use it in real life. | ||
```javascript 1.8 | ||
async function () { | ||
const getMyCurry = () => unlimitedCurry( | ||
(e, parameters) => { | ||
}, | ||
parameters=>parameters.data.returnArray[0] | ||
+ parameters.data.returnArray[1] | ||
+ parameters.data.returnArray[2] | ||
) | ||
let fn = getMyCurry() | ||
fn('a') | ||
let returnValue = await fn('b', 'c')() | ||
expect(returnValue).to.be.equal('abc') | ||
fn = getMyCurry() | ||
fn('a', 'b') | ||
returnValue = await fn('c')() | ||
expect(returnValue).to.be.equal('abc') | ||
fn = getMyCurry() | ||
fn('a') | ||
fn('b') | ||
returnValue = await fn('c')() | ||
expect(returnValue).to.be.equal('abc') | ||
} | ||
``` |
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
9829
109