MCPcopy Create free account
hub / github.com/nodejs/node / hasCommonProperties

Function hasCommonProperties

test/fixtures/snapshot/typescript.js:66959–66967  ·  view source on GitHub ↗
(source, target, isComparingJsxAttributes)

Source from the content-addressed store, hash-verified

66957 return false;
66958 }
66959 function hasCommonProperties(source, target, isComparingJsxAttributes) {
66960 for (var _i = 0, _a = getPropertiesOfType(source); _i < _a.length; _i++) {
66961 var prop = _a[_i];
66962 if (isKnownProperty(target, prop.escapedName, isComparingJsxAttributes)) {
66963 return true;
66964 }
66965 }
66966 return false;
66967 }
66968 function getVariances(type) {
66969 // Arrays and tuples are known to be covariant, no need to spend time computing this.
66970 return type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 /* ObjectFlags.Tuple */ ?

Callers 1

isRelatedToFunction · 0.85

Calls 2

getPropertiesOfTypeFunction · 0.85
isKnownPropertyFunction · 0.85

Tested by

no test coverage detected