3 const _ = require("lodash");
5 // Omit any properties starting with `_`, which are fake-private
6 module.exports = function(results) {
7 const cleanedResults = results.map(result => {
8 return _.omitBy(result, (value, key) => key[0] === "_");
10 return JSON.stringify(cleanedResults);