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

Function checkProp

static/vuejs/vue.esm.js:3205–3228  ·  view source on GitHub ↗
(
  res,
  hash,
  key,
  altKey,
  preserve
)

Source from the content-addressed store, hash-verified

3203}
3204
3205function checkProp (
3206 res,
3207 hash,
3208 key,
3209 altKey,
3210 preserve
3211) {
3212 if (hash) {
3213 if (hasOwn(hash, key)) {
3214 res[key] = hash[key];
3215 if (!preserve) {
3216 delete hash[key];
3217 }
3218 return true
3219 } else if (hasOwn(hash, altKey)) {
3220 res[key] = hash[altKey];
3221 if (!preserve) {
3222 delete hash[altKey];
3223 }
3224 return true
3225 }
3226 }
3227 return false
3228}
3229
3230function mergeHooks (data) {
3231 if (!data.hook) {

Callers 1

extractPropsFunction · 0.70

Calls 1

hasOwnFunction · 0.70

Tested by

no test coverage detected