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

Function clean

lib/web/tern/tern.js:624–627  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

622
623 // Delete empty fields from result objects
624 function clean(obj) {
625 for (var prop in obj) if (obj[prop] == null) delete obj[prop];
626 return obj;
627 }
628 function maybeSet(obj, prop, val) {
629 if (val != null) obj[prop] = val;
630 }

Callers 5

findTypeAtFunction · 0.85
findDocsFunction · 0.85
findDefFunction · 0.85
generateMarkdownMethod · 0.85
completionMethod · 0.85

Calls

no outgoing calls

Tested by 1

generateMarkdownMethod · 0.68