MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / similarAVal

Function similarAVal

lib/web/tern/infer.js:223–227  ·  view source on GitHub ↗
(a, b, depth)

Source from the content-addressed store, hash-verified

221 });
222
223 function similarAVal(a, b, depth) {
224 var typeA = a.getType(false), typeB = b.getType(false);
225 if (!typeA || !typeB) return true;
226 return similarType(typeA, typeB, depth);
227 }
228
229 function similarType(a, b, depth) {
230 if (!a || depth >= 5) return b;

Callers 1

similarTypeFunction · 0.85

Calls 2

similarTypeFunction · 0.85
getTypeMethod · 0.80

Tested by

no test coverage detected