MCPcopy
hub / github.com/layui/layui / toType

Function toType

src/modules/jquery.js:129–138  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

127 }
128
129 function toType(obj) {
130 if (obj == null) {
131 return obj + '';
132 }
133
134 // Support: Android <=2.3 only (functionish RegExp)
135 return typeof obj === 'object' || typeof obj === 'function'
136 ? class2type[toString.call(obj)] || 'object'
137 : typeof obj;
138 }
139 /* global Symbol */
140 // Defining this global in .eslintrc.json would create a danger of using the global
141 // unguarded in another place, it seems safer to define global only for this module

Callers 5

isArrayLikeFunction · 0.85
jquery.jsFile · 0.85
accessFunction · 0.85
buildFragmentFunction · 0.85
buildParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected