MCPcopy Index your code
hub / github.com/dataease/SQLBot / toPropertyKey

Function toPropertyKey

frontend/public/swagger-ui-bundle.js:57358–57370  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

57356 typeof_typeof(s)
57357 )
57358 }
57359 function toPropertyKey(s) {
57360 var o = (function toPrimitive(s, o) {
57361 if ('object' != typeof_typeof(s) || !s) return s
57362 var i = s[Symbol.toPrimitive]
57363 if (void 0 !== i) {
57364 var a = i.call(s, o || 'default')
57365 if ('object' != typeof_typeof(a)) return a
57366 throw new TypeError('@@toPrimitive must return a primitive value.')
57367 }
57368 return ('string' === o ? String : Number)(s)
57369 })(s, 'string')
57370 return 'symbol' == typeof_typeof(o) ? o : o + ''
57371 }
57372 function defineProperty_defineProperty(s, o, i) {
57373 return (

Callers 1

Calls 1

typeof_typeofFunction · 0.85

Tested by

no test coverage detected