MCPcopy Create free account
hub / github.com/Exrick/xpay / tryStringObject

Function tryStringObject

xpay-code/src/main/resources/static/swagger/swagger-ui.js:1075–1075  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1073
1074 var isRegex; /* inlined from https://npmjs.com/is-regex */ var regexExec = RegExp.prototype.exec, tryRegexExec = function tryRegexExec(value) { try { regexExec.call(value); return true; } catch (e) { return false; } }, regexClass = '[object RegExp]'; isRegex = function isRegex(value) { if (typeof value !== 'object') { return false; } return hasToStringTag ? tryRegexExec(value) : to_string.call(value) === regexClass; };
1075 var isString; /* inlined from https://npmjs.com/is-string */ var strValue = String.prototype.valueOf, tryStringObject = function tryStringObject(value) { try { strValue.call(value); return true; } catch (e) { return false; } }, stringClass = '[object String]'; isString = function isString(value) { if (typeof value === 'string') { return true; } if (typeof value !== 'object') { return false; } return hasToStringTag ? tryStringObject(value) : to_string.call(value) === stringClass; };
1076 /* eslint-enable one-var-declaration-per-line, no-redeclare, max-statements-per-line */
1077
1078 /* inlined from http://npmjs.com/define-properties */

Callers 1

swagger-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected