UNPKG

308 BJavaScriptView Raw
1"use strict";
2
3const _ = require("lodash");
4
5// Omit any properties starting with `_`, which are fake-private
6module.exports = function(results) {
7 const cleanedResults = results.map(result => {
8 return _.omitBy(result, (value, key) => key[0] === "_");
9 });
10
11 return JSON.stringify(cleanedResults);
12};