MCPcopy Index your code
hub / github.com/nodejs/node / excludeProperties

Function excludeProperties

test/fixtures/snapshot/typescript.js:66310–66325  ·  view source on GitHub ↗
(properties, excludedProperties)

Source from the content-addressed store, hash-verified

66308 return result;
66309 }
66310 function excludeProperties(properties, excludedProperties) {
66311 if (!excludedProperties || properties.length === 0)
66312 return properties;
66313 var result;
66314 for (var i = 0; i < properties.length; i++) {
66315 if (!excludedProperties.has(properties[i].escapedName)) {
66316 if (result) {
66317 result.push(properties[i]);
66318 }
66319 }
66320 else if (!result) {
66321 result = properties.slice(0, i);
66322 }
66323 }
66324 return result || properties;
66325 }
66326 function isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState) {
66327 var targetIsOptional = strictNullChecks && !!(ts.getCheckFlags(targetProp) & 48 /* CheckFlags.Partial */);
66328 var effectiveTarget = addOptionality(getNonMissingTypeOfSymbol(targetProp), /*isProperty*/ false, targetIsOptional);

Callers 2

propertiesRelatedToFunction · 0.85
propertiesIdenticalToFunction · 0.85

Calls 3

hasMethod · 0.65
sliceMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…