Comparing version 3.0.0 to 3.0.1
@@ -426,2 +426,6 @@ var abbott = require('abbott'); | ||
if(!values.length){ | ||
return righto.from(undefined); | ||
} | ||
values = values.slice(); | ||
@@ -428,0 +432,0 @@ |
{ | ||
"name": "righto", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -243,2 +243,4 @@ # Righto | ||
If no tasks are passed, the final result will be `undefined`. | ||
No reducer passed: | ||
@@ -245,0 +247,0 @@ ```javascript |
@@ -437,2 +437,13 @@ var test = require('tape'), | ||
test('righto.reduce no items', function(t){ | ||
t.plan(2); | ||
var result = righto.reduce([]); | ||
result(function(error, finalResult){ | ||
t.notOk(error, 'no error'); | ||
t.equal(finalResult, undefined, 'Got correct final result'); | ||
}); | ||
}); | ||
test('righto().get(key)', function(t){ | ||
@@ -439,0 +450,0 @@ t.plan(4); |
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
66798
1723
740