MCPcopy Index your code
hub / github.com/TruthHun/BookStack / checkProp

Function checkProp

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

Source from the content-addressed store, hash-verified

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

Callers 1

extractPropsFunction · 0.70

Calls 1

hasOwnFunction · 0.70

Tested by

no test coverage detected