Skip to content

Commit

Permalink
Merge pull request #165 from mahmutisci/main
Browse files Browse the repository at this point in the history
Convert a `for…in` iterator to array index iteration.
  • Loading branch information
lgarron authored Jan 7, 2024
2 parents d328e2c + 7dd319f commit c647491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clipboard-polyfill/promise/promise-compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function promiseRecordMap<T>(
f: (key: string) => Promise<T>,
): Promise<Record<string, T>> {
var promiseList: Promise<T>[] = [];
for (var i in keys) {
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
promiseList.push(f(key));
}
Expand Down

0 comments on commit c647491

Please sign in to comment.