MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getType

Function getType

static/vuejs/vue.runtime.js:1422–1425  ·  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

1420 * across different vms / iframes.
1421 */
1422function getType (fn) {
1423 var match = fn && fn.toString().match(/^\s*function (\w+)/);
1424 return match && match[1]
1425}
1426
1427function isType (type, fn) {
1428 if (!Array.isArray(fn)) {

Callers 3

getPropDefaultValueFunction · 0.70
assertTypeFunction · 0.70
isTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected