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

Function isType

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

Source from the content-addressed store, hash-verified

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

Callers 1

validatePropFunction · 0.70

Calls 1

getTypeFunction · 0.70

Tested by

no test coverage detected