MCPcopy Index your code
hub / github.com/processing/p5.js / removeDuplicateOverloads

Function removeDuplicateOverloads

utils/convert.mjs:133–140  ·  view source on GitHub ↗
(overload, uniqueOverloads)

Source from the content-addressed store, hash-verified

131 // of the arguments is less important for parameter validation, we'll
132 // perform overload deduplication here.
133 const removeDuplicateOverloads = (overload, uniqueOverloads) => {
134 const overloadString = JSON.stringify(overload);
135 if (uniqueOverloads.has(overloadString)) {
136 return false;
137 }
138 uniqueOverloads.add(overloadString);
139 return true;
140 };
141
142 for (const [key, value] of Object.entries(funcObj)) {
143 if (value && typeof value === 'object' && value.overloads) {

Callers 1

flattenOverloadsFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected