e.g. ``` function findRecords(...) { return sear...
# suitescript
e
e.g.
Copy code
function 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(...),
     ...
  };
}