erictgrubaugh
06/05/2020, 7:40 PMtoObject
function to translate a Result[]
into an Object[]
, then with each
, the findCustomers
function looks more like
const findCustomers = () => {
let mappedResults = [];
let searchResults = s.create(...)
.run()
.each((r) => {
mappedResults.push(toObject(r));
});
}