Skip to content

Commit

Permalink
Avoid Array.from on Set.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Sep 4, 2019
1 parent dc0754e commit 991b099
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/property-effects-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,9 @@
const spans = new Set();
const accumulatedContent = () => {
Array.from(el.shadowRoot.querySelectorAll('span')).forEach(s => spans.add(s));
return Array.from(spans).map(e => e.textContent);
const content = [];
spans.forEach(e => content.push(e.textContent));
return content;
};

setup(() => {
Expand Down

0 comments on commit 991b099

Please sign in to comment.