MCPcopy
hub / github.com/fanmingming/live / getType

Function getType

m3u8/vue.js:1760–1763  ·  view source on GitHub ↗

* Use function string name to check built-in types, * because a simple equality check will fail when running * across different vms / iframes.

(fn)

Source from the content-addressed store, hash-verified

1758 * across different vms / iframes.
1759 */
1760 function getType (fn) {
1761 var match = fn && fn.toString().match(/^\s*function (\w+)/);
1762 return match ? match[1] : ''
1763 }
1764
1765 function isSameType (a, b) {
1766 return getType(a) === getType(b)

Callers 3

getPropDefaultValueFunction · 0.85
assertTypeFunction · 0.85
isSameTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected