Comparing version 0.2.2 to 0.2.3
@@ -12,2 +12,5 @@ 'use strict'; | ||
var zip = annotate('zip', 'Converts given input into a zip'). | ||
on(is.object, function(o) { | ||
return zip(keys(o), values(o)); | ||
}). | ||
on([is.array], function() { | ||
@@ -24,5 +27,2 @@ var ret = []; | ||
}). | ||
on(is.object, function(o) { | ||
return zip(keys(o), values(o)); | ||
}). | ||
satisfies(isZip); | ||
@@ -29,0 +29,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Juho Vepsalainen <bebraw@gmail.com>", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "annois": "0.3.0", |
'use strict'; | ||
var assert = require('assert'); | ||
var generate = require('annogenerate'); | ||
@@ -21,2 +23,4 @@ var fuzz = require('annofuzz')(generate); | ||
assert(deepeq(zip({name: 'Joe', age: 123}), [['name', 'Joe'], ['age', 123]])); | ||
// TODO: figure out a nice invariant for generalized case!!! |
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
4925
78