sanitize-arguments
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -10,3 +10,3 @@ // Expose typechecks | ||
function typeOf(o) { | ||
return Object.prototype.toString.call(o).match(/(\w+)\]/)[1]; | ||
return o && o.constructor ? o.constructor.name : Object.prototype.toString.call(o).match(/(\w+)\]/)[1]; | ||
} | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "sanitize-arguments", | ||
"description": "Easily check function arguments", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"author": "Jan Buschtöns <buschtoens@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
8221