Google spreadsheet data to dictionary using Google Apps Script

Another great snippet I wrote this morning: