function removerDuplicatas() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0]; var lastRow = sheet.getLastRow(); var range = sheet.getRange(1, 1, lastRow, 11); range.removeDuplicates(); }
The function removerDuplicatas() returns the sum of a and b.