AppsScriptPulse

Google Apps Script Tip: Sorting through an array of duplicates

Sort through an array of duplicates and extract unique values into a new array.

Remove array duplicates

Remove array duplicates

The following Google Apps Script is designed to go through an array of values that contains duplicates and create a new array of only the unique ones, arranged alphabetically. I needed this code when looping through files in a Google Drive folder where tutors and their groups formed part of the filename that I needed to extract for the end file that was created.

Source: The Gift of Script: Sort through an array of duplicates

Leave a Reply

Your email address will not be published. Required fields are marked *