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

Function isType

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

Source from the content-addressed store, hash-verified

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

Callers 1

validatePropFunction · 0.70

Calls 1

getTypeFunction · 0.70

Tested by

no test coverage detected