escss-estest
Advanced tools
Comparing version
{ | ||
"name": "escss-estest", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Mike Lee" |
@@ -87,2 +87,22 @@ // true: visible data and log detail | ||
/** | ||
* | ||
* @param {*} input | ||
* @param { "undefined" | "null" | "array" | "object" | "boolean" | "NaN" | "number" | "bigint" | "string" | "symbol" | "function" } type | ||
* @param {String} errMsg | ||
* @example | ||
* ESTest(NaN, 'NaN') | ||
* ESTest([], 'array') | ||
* ESTest(null, 'null') | ||
* ESTest(undefined, 'undefined') | ||
* ESTest(1, 'number') | ||
* ESTest('foo', 'string') | ||
* ESTest(true, 'boolean') | ||
* ESTest({}, 'object') | ||
* ESTest(1n, 'bigint') | ||
* ESTest(Symbol(), 'symbol') | ||
* ESTest(function () {}, 'function') | ||
* ESTest(1, 'object') // error | ||
* ESTest(1, 'object', 'foo') // error & message "foo" | ||
*/ | ||
function ESTest(input, type, errMsg = customErrMsg) { | ||
@@ -89,0 +109,0 @@ if (!types.includes(type)) { |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
14185
4.37%217
10.15%