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

Function checkProp

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

Source from the content-addressed store, hash-verified

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

Callers 1

extractPropsFunction · 0.70

Calls 1

hasOwnFunction · 0.70

Tested by

no test coverage detected