function dataRangeToObject(sheet) {
  const dataRange = sheet.getRange(1, 1, sheet.getLastRow(), sheet.getLastColumn()).getValues();
  const keys = dataRange.splice(0, 1)[0];
  return getObjects(dataRange, createObjectKeys(keys));
}
Helper function that turns sheet data range into an object. 

@param {SpreadsheetApp.Sheet} sheet - Sheet to process
Return {object} of a sheet's datarange as an object