Skip to content

Commit c739dd4

Browse files
authored
Prevent i and j from being globals
1 parent cb5ae47 commit c739dd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sheets/removingDuplicates/removingDuplicates.gs

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ function removeDuplicates() {
2626
// [START apps_script_sheets_new_data]
2727
var newData = [];
2828
// [END apps_script_sheets_new_data]
29-
for (i in data) {
29+
for (var i in data) {
3030
var row = data[i];
3131
var duplicate = false;
32-
for (j in newData) {
32+
for (var j in newData) {
3333
if (row.join() == newData[j].join()) {
3434
duplicate = true;
3535
}

0 commit comments

Comments
 (0)