Skip to content

Commit

Permalink
[memory] replace forEach with arrayFrom (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart authored Dec 7, 2023
1 parent 6cd8f9b commit bb7faf4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/@glimmer/validator/lib/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class Tracker {
} else if (tags.size === 1) {
return this.last as Tag;
} else {
let tagsArr: Tag[] = [];
tags.forEach((tag) => tagsArr.push(tag));
return combine(tagsArr);
return combine(Array.from(this.tags));
}
}
}
Expand Down

0 comments on commit bb7faf4

Please sign in to comment.