MCPcopy
hub / github.com/didi/mpx / type

Function type

packages/utils/src/base.js:115–117  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

113
114// type在支付宝环境下不一定准确,判断是普通对象优先使用isPlainObject(新版支付宝不复现,issue #644 修改isPlainObject实现与type等价)
115function type (n) {
116 return Object.prototype.toString.call(n).slice(8, -1)
117}
118
119function aliasReplace (options = {}, alias, target) {
120 if (options[alias]) {

Callers 15

isObjectFunction · 0.90
doValidatorFunction · 0.90
serializeFunction · 0.90
errorFunction · 0.90
isPlainObjectFunction · 0.90
initSetupMethod · 0.90
onDidUpdateStateFunction · 0.90
createBLEConnectionFunction · 0.90
closeBLEConnectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected