intertype
Advanced tools
Comparing version 203.1.0 to 203.2.0
@@ -100,2 +100,5 @@ (function() { | ||
}, | ||
map: function(x) { | ||
return x instanceof Map; | ||
}, | ||
nan: (x) => { | ||
@@ -210,2 +213,8 @@ return Number.isNaN(x); | ||
}, | ||
map: { | ||
test: _isa.map, | ||
template: function() { | ||
return new Map(); | ||
} | ||
}, | ||
nan: { | ||
@@ -243,2 +252,5 @@ test: _isa.nan, | ||
}, | ||
'empty.map': function(x) { | ||
return (this.isa.map(x)) && (x.size === 0); | ||
}, | ||
'empty.object': function(x) { | ||
@@ -256,2 +268,5 @@ return (this.isa.object(x)) && ((Object.keys(x)).length === 0); | ||
}, | ||
'nonempty.map': function(x) { | ||
return (this.isa.map(x)) && (x.size > 0); | ||
}, | ||
'nonempty.object': function(x) { | ||
@@ -258,0 +273,0 @@ return (this.isa.object(x)) && ((Object.keys(x)).length > 0); |
{ | ||
"name": "intertype", | ||
"version": "203.1.0", | ||
"version": "203.2.0", | ||
"description": "A JavaScript typechecker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
195447
1199