MCPcopy Index your code
hub / github.com/TruthHun/BookStack / isType

Function isType

static/vuejs/vue.runtime.esm.js:1421–1432  ·  view source on GitHub ↗
(type, fn)

Source from the content-addressed store, hash-verified

1419}
1420
1421function isType (type, fn) {
1422 if (!Array.isArray(fn)) {
1423 return getType(fn) === getType(type)
1424 }
1425 for (var i = 0, len = fn.length; i < len; i++) {
1426 if (getType(fn[i]) === getType(type)) {
1427 return true
1428 }
1429 }
1430 /* istanbul ignore next */
1431 return false
1432}
1433
1434function handleError (err, vm, info) {
1435 if (config.errorHandler) {

Callers 1

validatePropFunction · 0.70

Calls 1

getTypeFunction · 0.70

Tested by

no test coverage detected