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

Function isType

static/vuejs/vue.runtime.common.js:1423–1434  ·  view source on GitHub ↗
(type, fn)

Source from the content-addressed store, hash-verified

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

Callers 1

validatePropFunction · 0.70

Calls 1

getTypeFunction · 0.70

Tested by

no test coverage detected