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

Function checkProp

static/vuejs/vue.runtime.common.js:3203–3226  ·  view source on GitHub ↗
(
  res,
  hash,
  key,
  altKey,
  preserve
)

Source from the content-addressed store, hash-verified

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

Callers 1

extractPropsFunction · 0.70

Calls 1

hasOwnFunction · 0.70

Tested by

no test coverage detected