mirror of
https://gitee.com/bimuziyan/ccc-obfuscated-code.git
synced 2026-06-05 03:01:31 +08:00
update
This commit is contained in:
15
node_modules/validator/es/lib/util/toString.js
generated
vendored
Normal file
15
node_modules/validator/es/lib/util/toString.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||
|
||||
export default function toString(input) {
|
||||
if (_typeof(input) === 'object' && input !== null) {
|
||||
if (typeof input.toString === 'function') {
|
||||
input = input.toString();
|
||||
} else {
|
||||
input = '[object Object]';
|
||||
}
|
||||
} else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) {
|
||||
input = '';
|
||||
}
|
||||
|
||||
return String(input);
|
||||
}
|
||||
Reference in New Issue
Block a user