escss-estest
Advanced tools
Comparing version 1.4.2 to 1.4.3
{ | ||
"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)) { |
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
14185
217