MCPcopy Create free account
hub / github.com/openai/plugins / has

Method has

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:8691–8698  ·  view source on GitHub ↗
(a, b, weaklyPresent)

Source from the content-addressed store, hash-verified

8689 this._data = /* @__PURE__ */ new Map();
8690 }
8691 has(a, b, weaklyPresent) {
8692 var _this$_data$get;
8693 const result = (_this$_data$get = this._data.get(a)) === null || _this$_data$get === void 0 ? void 0 : _this$_data$get.get(b);
8694 if (result === void 0) {
8695 return false;
8696 }
8697 return weaklyPresent ? true : weaklyPresent === result;
8698 }
8699 add(a, b, weaklyPresent) {
8700 const map = this._data.get(a);
8701 if (map === void 0) {

Callers 15

cleanupOrphansFunction · 0.45
parseArgsFunction · 0.45
startServerFunction · 0.45
init-site-json.mjsFile · 0.45
detectStaggersFunction · 0.45
loadTypeFileWithImportsFunction · 0.45
isNodeFunction · 0.45
collectReferencedTypesFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected