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

Function isType

static/vuejs/vue.js:1431–1442  ·  view source on GitHub ↗
(type, fn)

Source from the content-addressed store, hash-verified

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

Callers 1

validatePropFunction · 0.70

Calls 1

getTypeFunction · 0.70

Tested by

no test coverage detected