should-type
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -76,3 +76,4 @@ 'use strict'; | ||
Type.prototype = { | ||
toString: function() { | ||
toString: function(sep) { | ||
sep = sep || ';'; | ||
var str = [this.type]; | ||
@@ -85,3 +86,3 @@ if (this.cls) { | ||
} | ||
return str.join(';'); | ||
return str.join(sep); | ||
}, | ||
@@ -88,0 +89,0 @@ |
@@ -74,3 +74,4 @@ var types = { | ||
Type.prototype = { | ||
toString: function() { | ||
toString: function(sep) { | ||
sep = sep || ';'; | ||
var str = [this.type]; | ||
@@ -83,3 +84,3 @@ if (this.cls) { | ||
} | ||
return str.join(';'); | ||
return str.join(sep); | ||
}, | ||
@@ -86,0 +87,0 @@ |
{ | ||
"name": "should-type", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Simple module to get instance type. Like a bit more advanced version of typeof", | ||
@@ -5,0 +5,0 @@ "main": "cjs/should-type.js", |
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
15233
437