erictgrubaugh
10/02/2018, 7:18 PMfunction findRecords(...) {
return search.create(...)
.run().getRange(...).map(toObject);
}
function toObject(result) {
return {
firstColumn: result.getValue(...),
secondColumn: parseFloat(result.getValue(...)),
anotherColumn: moment(result.getValue(...)).toDate(),
yetAnotherColumn: result.getText(...),
...
};
}