MCPcopy Index your code
hub / github.com/ternjs/tern / clean

Function clean

lib/tern.js:651–654  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

649
650 // Delete empty fields from result objects
651 function clean(obj) {
652 for (var prop in obj) if (obj[prop] == null) delete obj[prop];
653 return obj;
654 }
655 function maybeSet(obj, prop, val) {
656 if (val != null) obj[prop] = val;
657 }

Callers 3

findTypeAtFunction · 0.85
findDocsFunction · 0.85
findDefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…