(obj)
| 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 | } |
no outgoing calls